color-log

Simple colorable log. Support inspect objects and single line update

npm install color-log
1 downloads in the last day
2 downloads in the last week
22 downloads in the last month

colorable log for node.js

Installation

npm install color-log

supported styles

  • info
  • mark
  • warn
  • error

usage

var log = require('color-log');
log.info('you read this');
log.mark('you read this better');
log.warn('we require more vespene gas');
log.error('houston we have a problem');

support single line update

var slow = 'slow';
slowpoke_say();
function slowpoke_say()
{
    slow = slow.replace('o', 'oo');
    log.single.info("slowpoke say:", slow);
    setTimeout(slowpoke_say, 500);
}

example

npm loves you