console.colors
v1.0.1
Published
Adds colorful methods to the console.
Downloads
2
Readme
console.colors
Do this
require('console.colors');
Now you can do this
console.color('red', 'bold', 'underline')('Hello world');
console.color('blue', 'bold', 'italic')('Hello world');
console.color('green', 'bgBlack')('Hello world');
console.color('bgCyan', 'strikethrough')('Hello world');
console.color('hidden')('Hello world');
console.color('inverse')('Hello world');
console.color('inverse', 'red')('Hello world');
All color options
colors: black, red, green, yellow, blue, magenta, cyan, white, gray, grey
backgrounds: bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite
decoration: reset, bold, dim, italic, underline, inverse, hidden, strikethrough