is-css-color-name

0.1.3 • Public • Published

is-css-color-name

NPM version Build Status Coverage Status

Code Climate Dependencies DevDependencies

Determine if a name is a valid CSS color name

Install

npm install --save is-css-color-name

Usage

ES2015

import isCSSColorName from 'is-css-color-name';
 
isCSSColorName(3);
// => false
 
isCSSColorName('unicorn');
// => false
 
isCSSColorName('aliceblue');
// => true

ES5

var isCSSColorName = require('is-css-color-name');
 
isCSSColorName(3);
// => false
 
isCSSColorName('unicorn');
// => false
 
isCSSColorName('aliceblue');
// => true

LICENSE

MIT © Dustin Specker

Readme

Keywords

Package Sidebar

Install

npm i is-css-color-name

Weekly Downloads

1,534

Version

0.1.3

License

MIT

Last publish

Collaborators

  • dustinspecker