24 Commits

Author SHA1 Message Date
cjc
5ca667df4a Fix to coerce object input back to string in null stylize operation 2012-01-19 20:23:50 +10:00
Marak Squires
4b2ae6c5ec [dist] First pass at JSHINT of codebase 2011-12-11 14:39:44 -08:00
Marak Squires
891da6434c [api] Make colors.setTheme sync call 2011-12-09 23:12:15 -08:00
Marak Squires
e33dc81671 [api] First pass at making themes loadable from files 2011-12-09 22:50:23 -08:00
Marak Squires
19f23dd070 [api] colors.setTheme will warn and ignore any attempts to overwrite important String.prototypes 2011-12-09 21:02:03 -08:00
Marak Squires
3c2eb9d0e6 [dist] [fix] Remove override check. Bump to v0.6.0-1 2011-12-09 04:17:00 -08:00
Marak Squires
e4decd0fb2 [api] Added custom themes using colors.setTheme. Cleaned up browser detection logic. 2011-12-09 03:32:41 -08:00
Maciej Małecki
600c9718e4 [refactor] Fix code formatting 2011-10-02 01:08:30 +02:00
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
Maciej Małecki
50264b9238 [minor] Add none mode, which doesn't change string
See nodejitsu/jitsu#101 - we need an easy way to strip all colors from
output.
2011-09-24 12:33:03 +02:00
nicoreed
e32b28196e [fix] fixed the black color to fix issue #6 2011-07-14 18:08:57 -07:00
nicoreed
5af04df3f3 [minor] included an ascii code string stripper; fixes #1 2011-07-14 18:02:32 -07:00
nicoreed
036bd80cdb [minor] implemented a browser mode for issue #4 2011-07-14 17:40:30 -07:00
nicoreed
7fc728724a [minor] added exports for the colors 2011-07-14 15:59:52 -07:00
Marak Squires
4b6bc29521 [dist] Updated package.json, bumped version, added creds. [misc] Snuck in demonic entity. 2011-03-15 03:10:40 -07:00
Dustin Diaz
9310a89b24 add better support for browser fallback. moaaar tests 2011-03-14 21:23:06 -07:00
Dustin Diaz (@ded)
e49356a4c2 default to original string if you're not in a headless environment (like a browser).
makes console.log('hello'.red) work.
2011-03-07 18:09:07 -08:00
Marak Squires
88509012ab added some documentation to colors.js, replaced hard tabs with soft tabs, adjusted identation for sytle purposes, bumped version to 0.3.0. want to research package.json formats a bit more 2010-07-22 14:37:56 -04:00
Justin Campbell
96f8cd5626 Removed require(sys) used while debugging 2010-07-22 18:17:19 +00:00
Justin Campbell
54cffd2417 Rainbows 2010-07-22 18:11:17 +00:00
Marak Squires
5a56414697 added proper license 2010-07-07 21:17:07 -04:00
Marak Squires
6f7438f88f added some credits 2010-06-12 23:02:19 -04:00
Marak Squires
2b2840fed1 added more colors. need to modify library so that we dont have to list all colors and styles twice 2010-06-11 04:07:05 -04:00
Marak Squires
270314c42b first commit 2010-06-11 02:56:25 -04:00