Get colors in your node.js console
npm i node-log --save
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 | 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 |
npm run example
MIT