color_name_to_rgb
converts an html color name to a format of your choice
#Installation
npm install color_name_converter
#Usage
First you require the library:
var color = require("color_name_to_rgb");
Invoking is easy. You just write:
var output = color("gold");
The output will be:
var output = 'rgb(255,215,0)';
As a default the function returns a rgb string.
But you can define your format too:
var output = color("gold", "hex");
var output = color("gold", "rgba");
var output = color("gold", "array");
Valid formats are rgb, rgba, hex, array, object