web-color
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

web-color

A simple package with lots of web color names.

npm license github-issues

nodei.co

travis-status stars forks

forks

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'}

See full color list

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

License

Readme

Keywords

Package Sidebar

Install

npm i web-color

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

231 kB

Total Files

19

Last publish

Collaborators

  • wendly