chalk on npm

2.4.2 (05 Jan 2019 15:01)

Terminal string styling done right


GitHub Releases

v2.4.2 05 Jan 2019 15:01
  • Strict mode in Flow definition (#309) https://github.com/chalk/chalk/commit/f95d9ec8c92329fd087fbd3ecb7a87d0e8345b59

This release is done from the v2-release branch, as master branch targets the work-in-progress v3 release.

v2.4.1 26 Apr 2018 05:04
  • Improved Flow type definition for CommonJS interop.

https://github.com/chalk/chalk/compare/v2.4.0...v2.4.1

v2.4.0 17 Apr 2018 04:04
  • Added Flow type definitions. https://github.com/chalk/chalk/commit/7c6f83f719b241b7a1a1cd54b256d123e53eab4a

https://github.com/chalk/chalk/compare/v2.3.2...v2.4.0

v2.3.2 02 Mar 2018 17:03
  • Fixed detection of color support for VSCode debug console. https://github.com/chalk/supports-color/commit/b764af94766fd44e8a2ebf690c1c1b2e86d61328
  • Fixed detection of 24M colors in Konsole. https://github.com/chalk/supports-color/commit/d6e08c83d0e24241cb7d24206ef8753e839103eb
  • Fixed using chalk.ansi256 when in a terminal with 256-color level support. https://github.com/chalk/ansi-styles/commit/1ac7472f8bb4f583299b6d5ef87a383f7b564b4b

https://github.com/chalk/chalk/compare/v2.3.1...v2.3.2

v2.3.1 11 Feb 2018 13:02
  • Calculate proper level when forcing color. https://github.com/chalk/supports-color/commit/b16e9a4b9f13b3930e184e2f582b55091216fe47
  • Detect 16m color support on Windows >=10.0.14931. https://github.com/chalk/supports-color/commit/cf7bd05b814246e76c7f09bdb8e14a2ee581a2dd

https://github.com/chalk/chalk/compare/v2.3.0...v2.3.1

v2.3.0 24 Oct 2017 04:10
  • Added a .visible() method for emitting text only when Chalk is enabled. This can be useful for purely cosmetic content that shouldn't be shown when there are no colors, like when piping the output. https://github.com/chalk/chalk/commit/dc092b4a5f5ca77dd1e22607cdf2fdd388803064
  • TypeScript type definitions improvements. https://github.com/chalk/chalk/commit/7be154c074026f77b99e7d854b3a4cdd5e4ae502

https://github.com/chalk/chalk/compare/v2.2.0...v2.3.0

v2.2.0 18 Oct 2017 03:10

Chalk now comes with TypeScript type definitions built-in. https://github.com/chalk/chalk/commit/f653b061d6fbdb1c7224f7d80476391202c47877 Note: It's incompatible with @types/chalk if you're currently using that: https://github.com/chalk/chalk/issues/215

https://github.com/chalk/chalk/compare/v2.1.0...v2.2.0

v2.0.0 2.0.0 29 Jun 2017 23:06

version 2

Chalk is a Node.js module for styling and colorizing terminal output.

Two years ago, @qix- asked me about adding 256/Truecolor support to Chalk. He soon after joined the Chalk team. And now we’re finally able to ship Truecolor support in Chalk!

Chalk has had an immense growth since the 1.0.0 release in 2015. It's now trusted by more than 17.000 packages, up from 3000, and it's the 5th most depended upon package on npm.

Highlights

Breaking changes

  • Requires Node.js 4 or later.
  • Removed chalk.hasColor(). Use the has-ansi package directly instead. https://github.com/chalk/chalk/commit/04cae226cc0fc11fd7898f3fa91fdc4a3b3e496b
  • Removed chalk.stripColor(). Use the strip-ansi package directly instead. https://github.com/chalk/chalk/commit/04cae226cc0fc11fd7898f3fa91fdc4a3b3e496b
  • Removed chalk.styles. Use the ansi-styles package directly instead. https://github.com/chalk/chalk/commit/870249689acc6b04e81e96d2c09c39b76c640a94

256/Truecolor support

chalk rainbow

Chalk now supports 256 colors and Truecolor (16 million colors). Terminal apps like Hyper and iTerm supports Truecolor, enabling you to create really immersive CLI experiences. Chalk is smart enough to downsample the colors to whatever the terminal supports, so you can use any colors without having to think whether it's supported or not.

Read more in the docs.

https://github.com/chalk/chalk/commit/cb3f2308e17cd2878d2722db7762bdc725e9ff48

Tagged template literal

Chalk now ships with a tagged template literal that makes it much nicer to create long strings with lots of different styling.

const name = 'Sindre';
console.log(chalk`{bold Hello ${name}}`);

Read more in the docs.

https://github.com/chalk/chalk/commit/f66271e01a901470a3d5afcb3feae552848ccf0c

Other

  • Added bright color variants. https://github.com/chalk/ansi-styles/commit/d1d855e75b9178700312d4076a42b510c9e0c289
  • Fixed a bleed issue on macOS. https://github.com/chalk/chalk/commit/05f87e25e108726ee469aa56cc88fcc160a911ed
  • Added support for 256 color output on Windows 10 build 10586 or newer. https://github.com/chalk/supports-color/commit/340588ef8225d294d72aea7dd3343287220ed093

All changes

https://github.com/chalk/chalk/compare/v1.1.3...v2.0.0


Made with ♥ by Josh, Sindre, and all our wonderful contributors.

v1.1.1 1.1.1 - builder-is-not-defined 19 Aug 2015 20:08

Fixes a very strange issue with using the same name for a variable and its assigned function. https://github.com/chalk/chalk/issues/81

Probably a V8 bug.

v1.1.0 1.1.0 - argumentative-pineapple 01 Jul 2015 13:07

Introducing chalk 1.1.0!

Chalk is now used by over 4000 npm packages and has become the eight most depended on package in the world!

Update

$ npm install --save chalk

Highlights

  • Chalk has moved to its own org! github.com/chalk/chalk.
  • gray.dim is a noop on Windows to work around cmd.exe bugs. #58
  • chalk/ansi-styles now exposes an unique object per required instance. #63 Thanks to Qix-!
  • chalk/chalk-cli wraps chalk for easy use on the command-line.
  • 100% code coverage.

Changes

https://github.com/chalk/chalk/compare/v1.0.0...v1.1.0

Contribute

Help us get npm packages upgraded to chalk 1.1.0 by submitting a Pull Request to any of these repositories upgrading their chalk dependency in package.json.

We're also looking for feedback on the documentation. If you think anything can be improved, let us know by opening an issue ;)

Made with ♥ by Sindre, Joshua, JD, and all our wonderful contributors.

v1.0.0 1.0.0 - radiant-luminosity 23 Feb 2015 07:02

Introducing chalk 1.0.0!

Chalk is a node module for styling/colorizing terminal output.

Chalk is now used by ~3000 npm packages and even displayed on the npm landing page.

Fun fact: Technically, color doesn’t exist. Color is created only when our brain tries to make sense from light signals it receives from the outer world. In other words, it’s all in your head.

Update

$ npm install --save chalk

Highlights

  • Style application order is now left-to-right as one would expect. Was previously the reverse. 0234fe9
  • Force the blue color to be bright blue on Windows as the normal blue is illegible. fc6a9b2
  • Ability to disable/enable colors on a per instance basis, rather than globally. 72d1c11e43a00c0ea64ea3591342d68ef4b46244
  • Add ability to force color by setting the FORCE_COLOR environment variable. 19935d6484811c5e468817f846b7b3d417d7bf4a
  • Disable color when node is launched from Upstart. https://github.com/sindresorhus/supports-color/commit/3371f56ec42b389014ced49970b037777e27571e

Changes

https://github.com/sindresorhus/chalk/compare/v0.5.1...v1.0.0

Contribute

Help us get npm packages upgraded to chalk 1.0.0 by submitting a Pull Request to any of these repositories upgrading their chalk dependency in package.json.

We're also looking for feedback on the documentation. If you think anything can be improved, let us know by opening an issue ;)

Made with ♥ by Sindre, Joshua, and all our wonderful contributors.

v0.5.1 0.5.1 - High Octane Orange 09 Jul 2014 20:07
  • Critical bugfix #33 where cached style functions would be reset by declaring new styles. Thanks @seanmonstar!
  • Further speed improvements #32 in the case of applying only a single style. Again all credit goes to @seanmonstar.
v0.5.0 0.5.0 - luminosity-fluorescence 04 Jul 2014 21:07

Version History

Version Date
2.4.2 05 Jan 2019 15:01
2.4.1 26 Apr 2018 05:04
2.4.0 17 Apr 2018 04:04
2.3.2 02 Mar 2018 17:03
2.3.1 11 Feb 2018 13:02
2.3.0 24 Oct 2017 04:10
2.2.2 24 Oct 2017 03:10
2.2.0 18 Oct 2017 03:10
2.1.0 07 Aug 2017 03:08
2.0.1 30 Jun 2017 03:06
2.0.0 29 Jun 2017 23:06
1.1.3 29 Mar 2016 00:03
1.1.2 28 Mar 2016 23:03
1.1.1 19 Aug 2015 20:08
1.1.0 01 Jul 2015 13:07
1.0.0 23 Feb 2015 07:02
0.5.1 09 Jul 2014 20:07
0.5.0 04 Jul 2014 21:07
0.4.0 13 Dec 2013 19:12
0.3.0 19 Oct 2013 15:10
0.2.1 29 Aug 2013 14:08
0.2.0 03 Aug 2013 16:08
0.1.1 03 Aug 2013 01:08
0.1.0 03 Aug 2013 00:08