color-log
v0.0.2
Published
Simple colorable log. Support inspect objects and single line update
Downloads
727
Readme
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);
}