0.0.3 • Published 8 years ago
node-log.js v0.0.3
node-log.js
Get colors in your node.js console
Installation
npm i node-log --save
Usage
const log = require('node-log.js');
const testStr = 'hello world!'
log.normal(testStr);
log.info(testStr);
log.warn(testStr);
log.success(testStr);
log.error(testStr);
log.custom(testStr);
API
API | Utility |
---|---|
log.normal | output with white color |
log.info | output with cyan color |
log.warn | output with yellow color |
log.success | output with green color |
log.error | output with red color |
log.custom | wrapper for log.normal |
Example
npm run example
License
MIT