Package Exports
- node-console-colors
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-console-colors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 --LISTCOLORS
Known issues:
Windows, OSX, and MinGW/Msys32 will show all colors, but Linux may show fewer colors.