James Costian
eace24dc1a
Added background colors
2013-07-25 22:16:23 -07:00
Marak
156930b317
[test] Removed gray / grey from test. Removed comments.
2013-07-25 22:04:51 -07:00
Marak
c93fd972f7
Merge pull request #52 from jakub-g/master
...
[fix] Use String.prototype instead of Object.prototype in defineProperty
2013-07-25 22:00:00 -07:00
jakub-g
52c0dcd005
Use String.prototype instead of Object.prototype in defineProperty
2013-07-02 17:43:21 +02:00
Ron Korving
4ddf4e5ce3
Merge pull request #51 from davidpodolsky/master
...
Fix issue #50 : Added check/implementation for defineProperty over __defineGetter__
2013-06-18 21:15:37 -07:00
David Podolsky
6045347a38
Added defineProperty check/implementation. Is available (ie node.js) defineProperty is the correct way to add color properties so they aren't enumerable. Unintentional enumerable properties can cause global issues
2013-06-14 16:14:19 +00:00
Ron Korving
6ce311411e
Merge pull request #46 from zofrex/grey-to-gray
...
Change 'grey' to 'gray' in HTML/CSS output
2013-04-26 00:22:48 -07:00
zofrex
56a61a6c3a
Change 'grey' to 'gray' in HTML/CSS output
...
Browsers support both, but only IE8+. Source: https://developer.mozilla.org/en-US/docs/CSS/color_value#1
2013-03-07 22:31:40 +00:00
Scott Taylor
1ff98bf1b4
fix package.json (invalid json)
2013-01-08 20:59:45 +01:00
Antoine Musso
683b947493
[dist] Added homepage, bugs, and keywords to package.json
2013-01-05 13:07:03 +05:30
Marc Trudel
b91a1eccf3
[api] Added ability to set styles via array. Closes #27
2013-01-05 12:53:29 +05:30
Marak Squires
52d4f71696
Revert "[api fix] Make properties non-enumerable"
...
This reverts commit adf06f0988ad72d437275c192a7503421cd853ba.
2013-01-05 12:13:41 +05:30
Marak Squires
67ab1a7232
[api] Added strikethrough style ( seems to be linux only ). Added strikethrough examples. Closes #35
2013-01-05 11:47:07 +05:30
Jan Buschtöns
435741eea0
Add strikethrough tests
2013-01-05 11:36:07 +05:30
Marak
e5fe67f826
Merge pull request #28 from timelesshaze/master
...
[fix] Changed octal literals to hexadecimal
2012-09-06 02:43:41 -07:00
Marak
e9604a5194
Merge pull request #20 from cjc/master
...
[fix] Theme properties return object when mode == 'none'
2012-09-05 21:33:45 -07:00
timelesshaze
e8f50c4740
Changed octal literals to hexadecimal\nOctal literals are not allowed in strict mode.
2012-08-08 13:10:01 +02:00
Maciej Małecki
adf06f0988
[api fix] Make properties non-enumerable
...
Fixes #5 .
2012-06-27 11:24:20 +02:00
cjc
5ca667df4a
Fix to coerce object input back to string in null stylize operation
2012-01-19 20:23:50 +10:00
cjc
3aed695b49
Add tests for return type of color and theme properties
2012-01-19 18:51:41 +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
75858e0e5a
[docs] Fixed example in docs
2011-12-09 15:12:14 -08:00
Marak Squires
3c2eb9d0e6
[dist] [fix] Remove override check. Bump to v0.6.0-1
v0.6.0-1
2011-12-09 04:17:00 -08:00
Marak Squires
1ccd286880
[dist] Bump to v0.6.0
v0.6.0
2011-12-09 03:32:52 -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
Morgan "ARR!" Allen
2f03cd933b
[docs] New examples in example.js
2011-10-02 01:21:18 +02: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
0e5305709d
[test] Test colors.js, add test.js
...
This is the worst example of unit tests in the world.
2011-10-02 00:36:05 +02:00
Maciej Małecki
8e55ca411c
[dist] Version bump v0.5.1
v0.5.1
2011-09-25 11:13:41 +02:00
Maciej Małecki
4b71bfe233
[dist] Use new syntax for engines in package.json
2011-09-25 11:12:12 +02:00
Maciej Małecki
d1eab2c1dc
[minor] s/sys/util/g in example.js
...
Requiring `sys` emits a warning since joyent/node@8d70cc6 .
2011-09-25 10:11:37 +02:00
Marak Squires
5f945f0da4
Merge pull request #10 from mmalecki/none-mode
...
Add none mode, which doesn't change string
2011-09-25 01:02:55 -07: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
Marak Squires
4a63717497
Merge pull request #8 from nicoreed/master
...
A handful fixes
2011-07-18 16:09:02 -07: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
97338e78c4
merge upstream. update package info
2011-03-14 21:34:12 -07:00
Dustin Diaz
9310a89b24
add better support for browser fallback. moaaar tests
2011-03-14 21:23:06 -07:00
Marak Squires
7585d23740
[dist] Bumped to new version
2011-03-07 22:33:53 -08: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
b6ff10236a
fixed lic
2010-11-20 03:20:01 -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