Détail du package

is-css-color

princejwesley5.1kMIT1.0.0

Check if a given string is css compatible color value

css, color, string, detect

readme

is-css-color

Build Status npm version license

Check if a given string is css compatible color value.

Install

npm install is-css-color

Usage

var isCSSColor = require('is-css-color');

isCSSColor('#FFF'); // true
isCSSColor(rgba(255, 100, 123, 0.5)); // true
isCSSColor(hsl(25, 60%, 15%)); // true

License

MIT License