How do you set colors using either rgb or hex representation using the very popular colors module? https://npmjs.org/package/colors
I read ove documentation and don't see an option, however, it seems like such a popular module would give you this control, no?
var colors = require('colors');
colors.setTheme({
my_green: '#5A9664', // doesn't work
output: 'green',
});
console.log("A string that wants to be a color.".my_green);
update, putting one of my comments in question so it's not burried: The colors module supports Browser mode, which clearly opens up the door for #hex colors within the html tags. The setTheme doesn't support an ANSI input array, and only takes the first half. (The module would have to be smarter to wrap the string in ansi.)
Thanks.