Easily use colored output and formatting in your irc bots.
const c = ;...ircbot; // prints blue textircbot; // can be chainedircbot; // white text with black backgroundwarn = cboldredbgyellow;ircbot; // bold red text with yellow backgroundircbot
If you don't mind changing the prototype of the String object, then use the global() function.
...ircbot; // prints red textircbot; // prints green bold textircbot // chains work too
Global syntax was inspired by colors.js and because of that, there's possibility that you might want to use that module along with this one. That's why the irc property of a String needs to be called first to use the formatting functions.
Original name or alternate can be used, without spaces
You can also strip out any colors/style from IRC messages.
const c = ;ircbot;
npm install irc-colors
Tests are written with vows