Morgan "ARR!" Allen 158d165ad6 breaks rainbow into sequencer and map function
This adds the ability to easily add new sequences. Adds two examples
(zebra, red, white, blue). Also exports the addSequencer method to
programs including colors can add new sequences on the fly.

Conflicts:

	example.js
2011-10-02 00:57:29 +02:00
2010-11-20 03:20:01 -08:00
2011-09-25 11:13:41 +02:00
2011-10-02 00:36:05 +02:00

colors.js - get color and style in your node.js console like what

   var sys = require('sys');
   var colors = require('./colors');

   sys.puts('hello'.green); // outputs green text
   sys.puts('i like cake and pies'.underline.red) // outputs red underlined text
   sys.puts('inverse the color'.inverse); // inverses the color
   sys.puts('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)

colors and styles!

- bold - italic - underline - inverse - yellow - cyan - white - magenta - green - red - grey - blue

Authors

Alexis Sellier (cloudhead) , Marak Squires , Justin Campbell, Dustin Diaz (@ded)

Description
get colors in your node.js console (reverted to the non-sabotaged v1.4.0)
Readme MIT 465 KiB
Languages
JavaScript 100%