ansis
4.5.0 · 1 Nov 2026ISC56.7M / weekRepositoryHomepagenpmAtom feed
3.17.0 is the newest release of 3.x.
In short
3 new2 fixed
Release note
Features
Optimised the npm package size from
10.3kB to7.0 kB.Now, Ansis is the
smallestyet most powerful library withrich functionality.
A slightly smaller ispicocolors(6.4 kB), but it offers onlybasic functionality.Added detection of the
xterm-directterminal as supportingtruecolor.Added support for the
COLORTERMenvironment variable with the following values:truecolor,24bit,ansi256,ansi(16 colors).
Bug Fixes (TypeScript)
Fixed default import in
TypeScriptcompiled withtsc:import ansis from 'ansis'now works so well asimport * as ansis from 'ansis'.Fixed the TS2339: Property 'strip' does not exist on type when the
tscoptionmoduleisnode16.