npm / chalk
chalk
What changed in chalk 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 breaking1 new APIs and options1 performance1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initchalk 67 changes
Breaking changes 3
At color level 1, ansi256() is downsampled to 16 colors.
At color level 1, bgAnsi256() is downsampled to 16 colors.
Chalk now requires Node.js 22.
New APIs and options 1
Adds underline styles and underline colors.
Performance 1
Improves performance.
Behavior and default changes 1
A numeric FORCE_COLOR value is now treated as an exact color level.
Fixes and other changes 1
Fixes inconsistent coercion of two arguments.