1.1.5 • Published 1 year ago

node-console-colors v1.1.5

Weekly downloads
40
License
MIT
Repository
github
Last release
1 year ago

node-console-colors adds ANSI coloring to the nodejs console.log output.

Install:

npm install --save console-colors

Usage:

const cc = require("node-console-colors");

console.log(cc.set("fg_red", "Hello World in red"))

console.log(cc.set("fg_blue", "Hello World in blue"))

console.log(cc.set("fg_green", "bg_dark_grey", "Hello World", "in fg_green and bg_dark_gray"))

To list all the colors:

node ./node_modules/node-console-colors/index.js

Known issues:

Windows, OSX, and MinGW/Msys32 will show all colors, but Linux may show fewer colors.

alt tag