JSPM

is-css-color-name

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2894
  • Score
    100M100P100Q115693F
  • License MIT

Determine if a name is a valid CSS color name

Package Exports

  • is-css-color-name

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-css-color-name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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