0.1.1 • Published 12 years ago

curly-colors v0.1.1

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

node-curly-colors

Simplifies the working with console colors in Node.js

Installation

$ npm install curly-colors

How to include

    var cc = require('curly-colors');

Available Color

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • grey

Available Styles

  • bold for bold size text
  • italic for italic text
  • underline for underlined text
  • blink for blinking text
  • inverse to inverse the colors

Examples

Simple colors

    console.log(cc('<{red>red text<}>'));

Multiple colors

    console.log(cc('<{red>red text<}> <{green>green text<}>'));

Nested colors

    console.log(cc('<{red>red text <{green>green text<}> red text<}>'));
    console.log(cc('<{red>red <{green>green <{bold>bold green<}> green<}> red<}>'));

And the final console output looks like this

Console Screenshot