node-console-colors

1.1.5 • Public • Published

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

/node-console-colors/

    Package Sidebar

    Install

    npm i node-console-colors

    Weekly Downloads

    230

    Version

    1.1.5

    License

    MIT

    Unpacked Size

    6.54 kB

    Total Files

    4

    Last publish

    Collaborators

    • damien-otis