0.1.1 • Published 12 years ago
curly-colors v0.1.1
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 textitalic
for italic textunderline
for underlined textblink
for blinking textinverse
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<}>'));