normalize-color
Normalize colors for use in terminals
Install
$ npm install --save normalize-color
Usage
const normalizeColor = ; ;//=> 'red'
API
normalizeColor(input)
input
Type: object
{r: 128, g: 0 , b: 256}
License
MIT © Nikhil Srivastava