color-log

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i color-log

Weekly Downloads

136

Version

0.0.2

License

none

Last publish

Collaborators

  • silvertoad