web-color
A simple package with lots of web color names.
Features
- Parse text with chords
Usage
import {Color} from 'web-color';
const alice = new Color(240, 248, 255);
// Or
import {color} from 'web-color'
console.log(color.WHITE);
// {red: 255, green 255, blue: 255, rgb: 'FFFFFF'}
Install
npm install --save web-color
Scripts
-
npm run build :
rm -rf dist && tsc
-
npm run test :
mocha ./dist/test/*.js
Dependencies
Package | Version | Dev |
---|---|---|
rgb-hex | ^2.1.0 | |
@types/chai | ^4.1.3 | |
@types/mocha | ^5.2.1 | |
@types/node | ^10.3.2 | |
chai | ^4.1.2 | |
mocha | ^5.2.0 |
Contributing
Contributions welcome; Please submit all pull requests against the master branch. If your pull request contains TypeScript patches or features, you should include relevant unit tests. Please check the Contributing Guidelines for more details. Thanks!
Author
Wendly Saintil wendlysaintil@gmail.com https://twitter.com//wendlysaintil