clg-color
clg-color is simple utility for Console.log() with color
Installation
npm install clg-color
npm install clg-color --save
Usage
This is simple console.log()
with color.
This package only have 6 levels about console.log()
, which are error
, success
, warning
, info
, prompt
and log
. And color for each level is shown as below:
- error: highlight with color red
- success: highlight with color green
- warning: highlight with color yellow
- info: highlight with color cyan
- prompt: highlight with color dark
- log: is normal console.log()
Example
var log = ; log;log;log;log;logprompt'This is prompt with color grey';log; let jets = title: 'Gulfstream G650' serial: 6166 price: '$59,950,000' year: 2015 title: 'Dassault Falcon 7X' serial: 221 price: '$29,995,000' year: 2013 ; log;log;log;