Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/is-css-color-name
Determine if a name is a valid CSS color name
https://github.com/dustinspecker/is-css-color-name
Last synced: 2 days ago
JSON representation
Determine if a name is a valid CSS color name
- Host: GitHub
- URL: https://github.com/dustinspecker/is-css-color-name
- Owner: dustinspecker
- License: mit
- Created: 2015-08-30T17:43:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T20:11:13.000Z (over 7 years ago)
- Last Synced: 2023-11-03T19:03:22.751Z (about 1 year ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# is-css-color-name
[![NPM version](https://badge.fury.io/js/is-css-color-name.svg)](https://badge.fury.io/js/is-css-color-name) [![Build Status](https://travis-ci.org/dustinspecker/is-css-color-name.svg)](https://travis-ci.org/dustinspecker/is-css-color-name) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-css-color-name.svg)](https://coveralls.io/r/dustinspecker/is-css-color-name?branch=master)[![Code Climate](https://codeclimate.com/github/dustinspecker/is-css-color-name/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/is-css-color-name) [![Dependencies](https://david-dm.org/dustinspecker/is-css-color-name.svg)](https://david-dm.org/dustinspecker/is-css-color-name/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/is-css-color-name/dev-status.svg)](https://david-dm.org/dustinspecker/is-css-color-name/#info=devDependencies&view=table)
> Determine if a name is a valid CSS color name
## Install
```
npm install --save is-css-color-name
```## Usage
### ES2015
```javascript
import isCSSColorName from 'is-css-color-name';isCSSColorName(3);
// => falseisCSSColorName('unicorn');
// => falseisCSSColorName('aliceblue');
// => true
```### ES5
```javascript
var isCSSColorName = require('is-css-color-name');isCSSColorName(3);
// => falseisCSSColorName('unicorn');
// => falseisCSSColorName('aliceblue');
// => true
```## LICENSE
MIT © [Dustin Specker](https://github.com/dustinspecker)