Marak
936cf564be
[minor] [fix] Add defaults for .trap and .zalgo. .random now using correct api. Update docs and screenshot.
2014-10-01 13:00:33 +02:00
Marak
dfb15b5538
[refactor] [major] Code cleanup. Node has changed a bit since 2010.
...
[api] Added ability to safely require colors without messing with String.prototype
[api] Removed browser functionality
[dist] Add travis file
2014-09-30 22:41:24 +02:00
Marak
b895035f4a
[dist] Bump to v0.6.2
v0.6.2
2013-08-21 16:15:24 -07:00
Marak
38db25ad14
[fix] Removed Object.define property entirely
2013-08-21 16:15:05 -07:00
Marak
c0bc636d4d
Revert "Prevent the defineProperty being called when property already exists"
...
This reverts commit 3f6fe70f39a00e2b120ec07f3eea6a1194e924ce.
2013-08-21 14:36:13 -07:00
Marak
d26602a2d7
Merge pull request #60 from gauntface/master
...
Prevent the defineProperty being called when property already exists
2013-08-21 14:06:43 -07:00
Matt Gaunt
3f6fe70f39
Prevent the defineProperty being called when property already exists
2013-08-14 13:04:09 +01:00
Marak
fd82d005d7
[dist] Bump to v0.6.1
v0.6.1
2013-07-25 22:48:35 -07:00
Marak
7c65caaed6
[example] Updated example
2013-07-25 22:48:23 -07:00
Marak
289591434a
[misc] JSHINT compliance
2013-07-25 22:48:09 -07:00
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