node-log.js

0.0.3 • Public • Published

node-log.js

node npm npm GitHub tag GitHub release GitHub license

Get colors in your node.js console

screenshot

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    13
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i node-log.js

Weekly Downloads

13

Version

0.0.3

License

MIT

Last publish

Collaborators

  • cntanglijun