NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #10 most downloaded on npm
Terminal string styling done right
Last release 7 days ago
27 Sep 2026
Release timing varies
gaps range from 2 weeks to 1.5 years
Most releases are documented
notes for 31 of 41 stable releases
2 versions withdrawn
withdrawn after publishing
13 years old
45 releases · first in 2013
Fix inconsistent coercion of two arguments 9c93a04
One column per quarter.
Fix vulnerability in 5.6.1, see: #656
Make WezTerm terminal use true color a8f5bf7
Make Ghostty terminal use true color ( #653 ) 79ee2d3
Fix navigator not defined ReferenceError ( #642 ) 4ebb62d
Update CIRCLECI environments to return level 3 color support f838120
CIRCLECI environments to return level 3 color support f838120Add sideEffects field to package.json 5aafc0a
Improve Deno compatibility ( #579 ) 7443e9f
Fix exported styles names ( #569 ) a34bcf6
Improved the names of exports introduced in 5.1.0 ( #567 ) 6e0df05
Expose style names (#566) d7d7571
https://github.com/chalk/chalk/compare/v5.0.1...v5.1.0
Add main field to package.json for backwards compatibility with some developer tools 85f7e96
main field to package.json for backwards compatibility with some developer tools 85f7e96https://github.com/chalk/chalk/compare/v5.0.0...v5.0.1
This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
chalk.Instance → Chalkchalk.supportsColor → supportsColorchalk.stderr → chalkStderrchalk.stderr.supportsColor → supportsColorStderr.keyword(), .hsl(), .hsv(), .hwb(), and .ansi() coloring methods (#433) 4cf2e40
color-convert package..keyword()chalk-template (#524) c987c61-import chalk from 'chalk';
+import chalkTemplate from 'chalk-template';
-chalk`2 + 3 = {bold ${2 + 3}}`;
+chalkTemplate`2 + 3 = {bold ${2 + 3}}`;
overline style (#433) 4cf2e40https://github.com/chalk/chalk/compare/v4.1.0...v5.0.0
Nothing published for this version
Readme updates https://github.com/chalk/chalk/commit/89e9e3a5b0601f4eda4c3a92acd887ec836d0175
Support template literals for nested calls (#392) 09ddbad
https://github.com/chalk/chalk/compare/v4.0.0...v4.1.0
Change the Level TypeScript type to be a union instead of enum f0f4638 `diff -if (chalk.level > Level.None) {} +if (chalk.level > 0) {} `
Level TypeScript type to be a union instead of enum f0f4638-if (chalk.level > Level.None) {}
+if (chalk.level > 0) {}
Object.setPrototypeOf as __proto__ could potentially be disabled (#387) 63469d3https://github.com/chalk/chalk/compare/v3.0.0...v4.0.0
This release has been in development for more than a year and [massively improves performance](https://github.com/chalk/chalk/pull/337) and [the time
<img src="https://user-images.githubusercontent.com/170270/68524554-0d375b80-02fb-11ea-97a9-27e15fc8ccc6.gif" width="250" height="250" align="right"> This release has been in development for more than a year and massively improves performance and the time it takes to import Chalk.
Thanks to @stroncium for his hard work on this. 🙌
.enabled property in favor of .level (#356) 1f77953
-if (chalk.enabled) {}
+if (chalk.level > 0) {}
chalk.constructor() in favor of chalk.Instance() (#322) de2f4cd
-new chalk.constructor({level: 1});
+new chalk.Instance({level: 1})
-import chalk from 'chalk';
+import chalk = require('chalk');
flow-typed).ChalkOptions TypeScript type to Options cf66156dim style workaround for Windows (#331) cd5de7a
blue color workaround for Windows (#330) 2ca015c
chalk.stderr for printing to stderr (#359) 2a53389blackBright color. It's the same as the gray color, but added for consistency. c25c32aansi256 and bgAnsi256 to TypeScript declaration (#368) fb8e85aansi and bgAnsi to TypeScript declaration (#369) 18c280dFORCE_COLOR environment variable can now be used to force a certain color level (#315) af4a078TERM=dumb higher priority in the color detection https://github.com/chalk/supports-color/commit/8d6a7b5830a96858a95ce9cfee1840dc30a3e837supportsColor which is top‑level only (#342) b3e9b91chalk.supportsColor (#347) d82b2a6unknown instead of just string (#316) 7f6e563https://github.com/chalk/chalk/compare/v2.4.1...v3.0.0
While this is a beta release, the code is well-tested and fairly stable. We encourage you to test it out and [report any issues](https://github.com/ch
While this is a beta release, the code is well-tested and fairly stable.<br>We encourage you to test it out and report any issues.
$ npm install chalk@3.0.0-beta.2
See the beta 1 release notes for more.
ansi256 and bgAnsi256 to TypeScript declarations (#368) fb8e85ahttps://github.com/chalk/chalk/compare/v3.0.0-beta.1...v3.0.0-beta.2
This release has been in development for more than a year and massively improves performance and the time it takes to import Chalk. Thanks to @stronci
This release has been in development for more than a year and massively improves performance and the time it takes to import Chalk. Thanks to @stroncium for his hard work on this.
While this is a beta release, the code is well-tested and fairly stable.<br>We encourage you to test it out and report any issues.
$ npm install chalk@3.0.0-beta.1
.enabled property in favor of .level (#356) 1f77953
-if (chalk.enabled) {}
+if (chalk.level > 0) {}
chalk.constructor() in favor of chalk.Instance() (#322) de2f4cd
-new chalk.constructor({level: 1});
+new chalk.Instance({level: 1})
-import chalk from 'chalk';
+import chalk = require('chalk');
ChalkOptions TypeScript type to Options cf66156dim style workaround for Windows (#331) cd5de7a
blue color workaround for Windows (#330) 2ca015c
chalk.stderr for printing to stderr (#359) 2a53389blackBright color. It's the same as the gray color, but added for consistency. c25c32aFORCE_COLOR environment variable can now be used to force a certain color level (#315) af4a078TERM=dumb higher priority in the color detection https://github.com/chalk/supports-color/commit/8d6a7b5830a96858a95ce9cfee1840dc30a3e837supportsColor which is top‑level only (#342) b3e9b91chalk.supportsColor (#347) d82b2a6unknown instead of just string (#316) 7f6e563https://github.com/chalk/chalk/compare/v2.4.1...v3.0.0-beta.1
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.
Improved Flow type definition for CommonJS interop.
https://github.com/chalk/chalk/compare/v2.4.0...v2.4.1
Added Flow type definitions. https://github.com/chalk/chalk/commit/7c6f83f719b241b7a1a1cd54b256d123e53eab4a
https://github.com/chalk/chalk/compare/v2.3.2...v2.4.0
Fixed detection of color support for VSCode debug console. https://github.com/chalk/supports-color/commit/b764af94766fd44e8a2ebf690c1c1b2e86d61328
chalk.ansi256 when in a terminal with 256-color level support. https://github.com/chalk/ansi-styles/commit/1ac7472f8bb4f583299b6d5ef87a383f7b564b4bhttps://github.com/chalk/chalk/compare/v2.3.1...v2.3.2
Calculate proper level when forcing color. https://github.com/chalk/supports-color/commit/b16e9a4b9f13b3930e184e2f582b55091216fe47
level when forcing color. https://github.com/chalk/supports-color/commit/b16e9a4b9f13b3930e184e2f582b55091216fe47https://github.com/chalk/chalk/compare/v2.3.0...v2.3.1
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 th
.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/dc092b4a5f5ca77dd1e22607cdf2fdd388803064https://github.com/chalk/chalk/compare/v2.2.0...v2.3.0
Nothing published for this version
Chalk now comes with TypeScript type definitions built-in. https://github.com/chalk/chalk/commit/f653b061d6fbdb1c7224f7d80476391202c47877 Note: It's i
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
Nothing published for this version
Nothing published for this version
> Chalk is a Node.js module for styling and colorizing terminal output.
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.
chalk.hasColor(). Use the has-ansi package directly instead. https://github.com/chalk/chalk/commit/04cae226cc0fc11fd7898f3fa91fdc4a3b3e496bchalk.stripColor(). Use the strip-ansi package directly instead. https://github.com/chalk/chalk/commit/04cae226cc0fc11fd7898f3fa91fdc4a3b3e496bchalk.styles. Use the ansi-styles package directly instead. https://github.com/chalk/chalk/commit/870249689acc6b04e81e96d2c09c39b76c640a94Chalk 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.
https://github.com/chalk/chalk/commit/cb3f2308e17cd2878d2722db7762bdc725e9ff48
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}}`);
https://github.com/chalk/chalk/commit/f66271e01a901470a3d5afcb3feae552848ccf0c
https://github.com/chalk/chalk/compare/v1.1.3...v2.0.0
Made with ♥ by Josh, Sindre, and all our wonderful contributors.
Nothing published for this version
Nothing published for this version
Fixes a very strange issue with using the same name for a variable and its assigned function. https://github.com/chalk/chalk/issues/81
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.
Chalk is now used by over 4000 npm packages and has become the eight most depended on package in the world!
Chalk is now used by over 4000 npm packages and has become the eight most depended on package in the world!
$ npm install --save chalk
gray.dim is a noop on Windows to work around cmd.exe bugs. #58https://github.com/chalk/chalk/compare/v1.0.0...v1.1.0
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.
> Chalk is a node module for styling/colorizing terminal output.
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.
$ npm install --save chalk
FORCE_COLOR environment variable. 19935d6484811c5e468817f846b7b3d417d7bf4aUpstart. https://github.com/sindresorhus/supports-color/commit/3371f56ec42b389014ced49970b037777e27571ehttps://github.com/sindresorhus/chalk/compare/v0.5.1...v1.0.0
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.
Critical bugfix #33 where cached style functions would be reset by declaring new styles. Thanks @seanmonstar!
Improved performance by a factor of 83x! _(thanks to @jbnicolai)_
.hasColor() method for checking if a string contains color escape codes.dim and hidden styles.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →