color2code
Get color code from color name
Features
This module converts a colorname to hex
& rgb
from CLI or from a Node.js application.
CLI Install
npm install color2code --global
Usage
You can pass in the color name to get it's hex
& rgb
values.
$ color2code rebeccapurple
will output
You can also pass in multiple colors to their hex
& rgb
values
$ color2code rebeccapurple thistle sandybrown
will output
Node app
Install the module locally
$ npm install color2code --save
Update index.js
as below
const C2C = default;console;
Run
$ node index.js[
Author
Arvind Ravulavaru arvind.ravulavaru@gmail.com https://thejackalofjavascript.com
License
Contributing
Contributions are highly welcome!