Paintbrush is an ascii coloring tool for nodejs.
It depends only on
var paint = ;console;console;paintredOnBlack = paint;painterror = paint;paintpath = paintcyan;// actually this is main reason to publish another one moduleconsole;// use to discard colors and repaint output from another programvar httpProcess = child_process;httpProcessstderr;httpProcessstdout;
var paint = ;
paint function allows you to write colored messages. First parameter is a color attribute
specification. You can use
also every color you can use as background, just add
Any following arguments joined with space character between them.
paint.stripColor can be used to discard any color information from string. Also you can use paint.discardColor as an alias.
paint.fillUnpainted will fill any color-absent chunks to color you want. Take a look into example in Synopsis to get idea how it works.