curly-colors

Simplifies the working with console colors

node-curly-colors

Simplifies the working with console colors in Node.js

$ npm install curly-colors
    var cc = require('curly-colors');
  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • grey
  • bold for bold size text
  • italic for italic text
  • underline for underlined text
  • blink for blinking text
  • inverse to inverse the colors
    console.log(cc('<{red>red text<}>'));
    console.log(cc('<{red>red text<}> <{green>green text<}>'));
    console.log(cc('<{red>red text <{green>green text<}> red text<}>'));
    console.log(cc('<{red>red <{green>green <{bold>bold green<}> green<}> red<}>'));