0.2.0 • Published 10 years ago

consoler v0.2.0

Weekly downloads
8
License
MIT
Repository
github
Last release
10 years ago

logo consoler npm

another smart and colorful console logger

screenshot

How to install

$ npm install consoler

Sample code

var consoler = require('consoler');

// check out in your console
consoler.log('success','hey dude, well done !');

// or use default tag
consoler.log('hey dude, well done !');

// or use shortcuts
consoler.success('success!');
consoler.error('fail!');
consoler.loading('wait a moment!');

Run demos

$ git clone https://github.com/turingou/consoler.git
$ cd consoler/demo
$ node demo.js

Text align

text align defalut length is 8, try to change edge length like this:

consoler.align(20);

Colors Map

feel free to add your labels and colors in ./colors.json or add your event and the color

var consoler = require('consoler');
consoler.add('alldone','green');

Run unit-test (Mocha)

$ git clone https://github.com/turingou/consoler.git
$ cd consoler
$ npm install 
$ npm test
0.2.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago