Yanis Benson
fb5da89bcb
relaxed loops
2019-06-29 13:42:16 +03:00
Yanis Benson
efab07c093
replaced arrays by linked lists
2019-06-29 13:42:16 +03:00
Yanis Benson
42d45ba75a
removed all regexp stuff
2019-06-29 13:42:16 +03:00
Yanis Benson
091e8ed936
optimized arguments handling, moved out of hot zone
2019-06-29 13:42:16 +03:00
Yanis Benson
b251c00ae3
improved replaces, builder instantiation
2019-06-29 13:42:16 +03:00
Dimitri Benin
98628d9f08
Use CommonJS-compatible export in TypeScript definition ( #344 )
2019-04-28 11:10:44 +07:00
Sindre Sorhus
7b9211be50
Minor refactoring
2019-03-15 00:08:50 +07:00
Sindre Sorhus
cd5de7a2f6
Remove dim style workaround for Windows ( #331 )
...
See: https://github.com/chalk/chalk/pull/330/#issuecomment-471977551
The issue seems to have been fixed in newer Windows 10 builds. We're not interested in adding a conditional for older Windows versions as the fix severely complicates the codebase, and it also creates problems for consumers as it makes the output unpredictable.
2019-03-13 00:24:34 +07:00
Sindre Sorhus
2ca015c4c5
Remove the blue color workaround for Windows ( #330 )
...
The illegible blue color has been fixed in Windows 10 build 16257: https://blogs.msdn.microsoft.com/commandline/2017/08/02/updating-the-windows-console-colors/
The workaround causes all kinds of problems, so better to remove it than adding conditionals for older Windows versions.
Fixes #329
2019-03-12 20:31:33 +07:00
Sindre Sorhus
3ef170b457
Require Node.js 8
2019-03-12 20:15:36 +07:00
Tom Sherman
de2f4cd606
Deprecate chalk.constructor() in favor of new chalk.Instance() ( #322 )
2019-03-12 19:53:03 +07:00
Sindre Sorhus
587a5fbcbb
Code style tweaks
2018-12-26 03:13:52 +01:00
George Gkasdrogkas
90c7a92ff1
Add docs comments and tests for TypeScript definitions ( #299 )
...
Fixes #293
2018-12-26 02:06:00 +01:00
Sindre Sorhus
2a678789b1
Validate the level option
...
Fixes #248
2018-09-18 15:33:20 +07:00
Sindre Sorhus
0307f263cb
Require Node.js 6
2018-09-18 14:32:14 +07:00
Kayla Washburn
678152cf19
Update chalk to use the latest updates to supports-color ( #247 )
2018-02-11 16:59:24 +07:00
Josh Junon
e2a4aa4275
fix .visible when called after .enable is set to false
2017-10-23 20:12:34 -07:00
Danny Kirchmeier
dc092b4a5f
Add .visible for emitting text only when enabled ( fixes #192 )
2017-10-23 19:44:46 -07:00
calebboyd
f653b061d6
Add TypeScript definitions ( #207 )
2017-10-18 10:10:43 +07:00
Josh Junon
69ac663f29
Fix undefined and null interpolated expressions ( fixes #194 )
2017-08-06 18:58:17 -07:00
Josh Junon
f0c0178d12
Allow multiple arguments in base chalk object ( fixes #187 )
2017-08-06 18:58:17 -07:00
Josh Junon
0827d3b632
Fix level when supportsColor returns falsey ( fixes #176 , #175 )
2017-08-06 18:58:17 -07:00
Josh Junon
fbd17e7a69
Escape backslashes in template arguments ( fixes #177 )
2017-08-06 18:58:17 -07:00
Kevin Mårtensson
e8d28f3041
Return empty string when there are no arguments ( #183 )
2017-07-23 22:13:55 +02:00
Sindre Sorhus
3d10f8fad7
Code style tweaks
2017-06-30 12:42:24 +02:00
Josh Junon
caeb7d8dca
fix missing TERM cases
2017-06-29 20:11:09 -07:00
Josh Junon
f66271e01a
Add tagged template literal ( #163 )
2017-06-30 01:46:19 +02:00
Josh Junon
09fb2d8606
Re-implement chalk.enabled ( #160 )
2017-06-29 22:34:00 +02:00
Sindre Sorhus
870249689a
Remove chalk.styles
...
Very few consumers use this. Those who need it can just use the `ansi-styles` package directly.
2017-06-20 21:37:29 +02:00
Sindre Sorhus
0412cdf07b
Minor code improvements
2017-06-20 21:17:16 +02:00
Sindre Sorhus
249b9ac7e7
ES2015ify the codebase
2017-06-20 19:21:14 +02:00
Josh Junon
cb3f2308e1
Add RGB (256/Truecolor) support ( #140 )
2017-06-20 19:02:09 +02:00
Josh
0d2144904b
check parent builder object for enabled status ( #142 )
2017-01-30 04:10:02 -05:00
Sindre Sorhus
4ce73b632b
make XO happy
2016-10-17 23:50:22 +07:00
Sindre Sorhus
d939a3f9bc
fix XO lint issue
2016-06-16 14:36:05 +02:00
Sindre Sorhus
a125eb0e72
OS X → macOS
2016-06-14 18:20:49 +02:00
Sindre Sorhus
18c64ad7ba
cleanup #92
2016-01-17 12:38:10 +01:00
Martin Heidegger
05f87e25e1
Close #92 PR: Closing before and reopening the style after a line break.
2016-01-17 12:35:27 +01:00
Steve Mao
8417f175ab
Close #95 PR: tweak defining proto.
2016-01-09 16:20:22 +01:00
vdemedes
04cae226cc
remove has-ansi and strip-ansi dependencies
2015-12-12 23:55:01 +01:00
Sindre Sorhus
409f95eef5
add XO
...
https://github.com/sindresorhus/xo
2015-08-20 03:05:43 +07:00
Luke Page
4006cc0b41
Remove un-necessary function name. Fixes #80
2015-08-19 16:57:06 +01:00
Joshua Appelman
922ac4b0aa
Makes dim when gray a noop on windows terminals.
...
Fixes #58
2015-07-01 04:11:18 +02:00
Joshua Appelman
dde7287192
Removes needless "|| ''".
2015-07-01 01:59:47 +02:00
Sindre Sorhus
c63e95c58b
code style
2015-06-30 18:05:11 +02:00
Wei Kin Huang
e3272e8449
Close #60 PR: Don't override windows blue when in xterm mode. Fixes #59
2015-04-26 16:00:01 +07:00
Sindre Sorhus
99614e760f
ternarify
2015-02-17 15:24:13 +07:00
David Keijser
72d1c11e43
Close #54 PR: export classy chalk object to create isolated ctx. Fixes #46 , Fixes #46
2015-02-17 15:18:18 +07:00
Sindre Sorhus
fc6a9b27dc
force blue color to be use bright blue on Windows - fixes #36
...
as the normal blue color is illegible
2014-12-05 16:27:16 +07:00
Sindre Sorhus
21143174c4
bump ansi-styles
...
the gray alias is now in ansi-styles
2014-11-23 18:56:00 +07:00