70 Commits

Author SHA1 Message Date
DABH
56de9f0983 Add bright/light colors, closes #128 2019-09-22 16:36:30 -07:00
DABH
b4d964b514 Make stylize() work for non-ASCI styles (#155) 2019-09-22 16:27:58 -07:00
Josh Weinstein
5d9eb90263 Fixed: throws non-intuitive error on color.red(null) but not on colors.red(undefined) (#261) 2019-09-22 16:10:31 -07:00
Vladimir Boretskyi
aa012aab59 Redo weak equality check so we can colorize null in safe mode (#257) 2019-09-22 16:04:21 -07:00
DABH
b63ef88e52 Update roadmap, update packages, and lint 2018-12-09 17:34:27 -08:00
DABH
f487e8ebad Fix #244 and #248 2018-12-09 17:28:46 -08:00
DABH
ba56f52c62
Merge pull request #232 from ALE-Rainbow/master
Fix #180 - Custom with multi attr failure
2018-07-22 14:29:06 -07:00
pii
f35d715e04 solving circular references 2018-07-22 13:43:20 -07:00
zucher
dee3ab0494
Fix #180 - Custom with multi attr failure
Fix #180 - Themes can have multiple attributes - but not in safe mode
2018-06-25 14:37:45 +02:00
DABH
7aa37ffe71 Preserve multiple consecutive newlines when applying style (closes #231) 2018-06-24 22:54:09 -07:00
DABH
2894751d40 Remove another dynamic require and add similar deprecation notice 2018-05-20 15:08:12 -07:00
DABH
a8ce90c51c Add edge case handling for undefined styles 2018-05-10 23:05:45 -07:00
DABH
7f146faff3 replace ternary with if/else 2018-05-04 18:18:27 -07:00
DABH
855e342c9e arg is a String object not a string literal (fixes #226) 2018-05-04 17:53:43 -07:00
DABH
5aebc674d8 Add ESLint and lint all files; add lint check to CI 2018-04-30 14:59:34 -07:00
DABH
c13ff984bb
Merge pull request #220 from streaka/master
Add multiline handling functionality
2018-04-30 11:26:37 -07:00
DABH
0a5a26c5e8
style nits 2018-04-23 15:41:19 -07:00
Josh Pike
9aebcadf1b Merge branch 'master' of https://github.com/streaka/colors.js 2018-04-23 17:11:02 +07:00
Josh Pike
373be07fab Performance related tweaks 2018-04-23 17:10:59 +07:00
DABH
c067109a29
rm blank line 2018-04-15 22:18:32 -07:00
Josh Pike
5fe02b870b fixed compatibility issues with node <=5 2018-04-16 12:08:00 +07:00
Josh Pike
01bb5cf845 fixed spacing, condensed line replacement call 2018-04-16 12:02:15 +07:00
DABH
89a14420c7
Merge pull request #222 from bcaudan/expose-enable-disable-methods
Expose enable/disable methods
2018-04-10 12:50:19 -07:00
Bastien Caudan
b674514f1b Expose enable/disable methods
closes #221
2018-04-09 08:16:20 +02:00
Josh Pike
00ee8f1ecd
Fixed typo 2018-04-03 13:45:37 +07:00
Josh Pike
e020f97ea9
Fixed test case
Test failed because /n was appended even when line count was 1
2018-04-03 13:42:53 +07:00
Josh Pike
172098b1f5
Add multiline handling functionality
Allows multiline logs to have each line styled properly.
2018-04-03 13:35:15 +07:00
DABH
c8cb532017
Merge pull request #179 from brettz9/patch-1
Update extendStringPrototype.js and merge master into develop
2018-03-25 12:43:49 -07:00
DABH
aee46459af
Merge branch 'master' into patch-1 2018-03-25 12:42:51 -07:00
DABH
fa977f1a05
Merge pull request #120 from grit96/master
Fix #119 - use util.inspect for logging objects
2018-03-25 12:41:04 -07:00
DABH
5c84a86797
Merge pull request #203 from jpap/settheme-webpack-warning
Remove setTheme dynamic require(...) that is problematic with webpack
2018-02-16 14:38:45 -08:00
DABH
0da00b2e32
Update colors.js
Setting a theme using a dynamic require is bad practice and causes lots of problems.  In case anyone is using that "feature," though, we return a warning that very explicitly tells them the (very simple) change they need to make to their code.
2018-02-16 14:32:59 -08:00
DABH
1d7180a8a1 better way to call updated supportsColor 2018-02-16 14:17:42 -08:00
paladox
fccafd2ad8
Update has-flag.js 2018-02-14 02:17:48 +00:00
paladox
24ab40b4ad
Update has-flag.js 2018-02-14 02:12:04 +00:00
paladox
e90c3c5088
Update supports-colors.js 2018-02-14 02:11:16 +00:00
paladox
fdd9b55cd1
Update has-flag.js 2018-02-14 01:10:20 +00:00
paladox
007f4d1cd5
Update supports-colors.js 2018-02-14 01:09:26 +00:00
paladox
2c38a68a7c
Update supports-colors.js 2018-02-14 01:02:05 +00:00
paladox
493733638d
Update supports-colors.js 2018-02-14 00:58:15 +00:00
paladox
a0bb404163
Update has-flag.js 2018-02-14 00:54:30 +00:00
paladox
f7227f2e87
Update has-flag.js 2018-02-14 00:51:51 +00:00
paladox
8d1da39bb4
Update has-flag.js 2018-02-14 00:48:12 +00:00
paladox
2dc605c8cd
Update supports-colors.js 2018-02-14 00:47:45 +00:00
paladox
2b739138b3
Update supports-colors.js 2018-02-14 00:35:35 +00:00
paladox
431627771e
Create has-flag.js 2018-02-14 00:35:13 +00:00
paladox
93dd9c7730
Merge branch 'develop' into patch-4 2018-02-14 00:28:13 +00:00
paladox
7bf2511fb3
Update supports-colors.js 2018-02-14 00:26:25 +00:00
paladox
4dbe3933ed
Update supports-colors.js 2018-02-14 00:25:47 +00:00
John Papandriopoulos
c018e0b1fb Remove setTheme dynamic require(...) that is problematic with webpack 2017-09-29 15:49:30 -07:00