Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Colored output for Terminal.
JavaScript
branch: master

test

latest commit ffd72a2b0b
@vdemedes authored
Failed to load latest commit information.
README.md init
index.js init
package.json test

README.md

Colorodo

This is tiny helper for colored output in Terminal.

Installation

npm install colorodo

Usage

console.log('some nice text'.color('yellow'))

Available colors

  • Black
  • White
  • Blue
  • Red
  • Green
  • Yellow

There is tweet-sized version!

String.prototype.color=function(c){l={black:30,red:31,green:32,yellow:33,blue:34,white:37};return"\033["+l[c]+"m"+this+"\033[0m"}

License

MIT.

Something went wrong with that request. Please try again.