v3.5.2
Features
- Optimised the npm package size from
10.3
kB to7.0 kB
.Now, Ansis is the
smallest
yet most powerful library withrich functionality
.
A slightly smaller ispicocolors
(6.4 kB), but it offers onlybasic functionality
. - Added detection of the
xterm-direct
terminal as supportingtruecolor
. - Added support for the
COLORTERM
environment variable with the following values:truecolor
,24bit
,ansi256
,ansi
(16 colors).
Bug Fixes (TypeScript)
- Fixed default import in
TypeScript
compiled 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
tsc
optionmodule
isnode16
.