Normalize colors for use in terminals
Chalk Supports only basic 9 colors.This module takes any RGB color and converts it to a nearest color thats is supported by chalk.
$ npm install --save normalize-color
const normalizeColor = require('normalize-color');
normalizeColor({r: 128, g: 0, b: 0});
//=> 'red'
Type: object
{r: 128, g: 0 , b: 256}
MIT © Nikhil Srivastava