irc.colors.js
Easily use colored output and formatting in your irc bots.
Usage
const c = ;...ircbot; // prints blue textircbot; // can be chainedircbot; // white text with black background warn = cboldredbgyellow;ircbot; // bold red text with yellow backgroundircbot
But wait, there's more!
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.
Colors
Original name or alternate can be used, without spaces
bot.say('#chat', c.bluecyan('hi'));
Styles
Extras
Strip
You can also strip out any colors/style from IRC messages.
stripColors
stripStyle
stripColorsAndStyle
const c = ; ircbot;
Install
npm install irc-colors
Tests
Tests are written with vows
npm test