ansis
4.5.0 · 1 Nov 2026ISC56.7M / weekRepositoryHomepagenpmAtom feed
Your version
3.17.0 is the newest release of 3.x.
In short
6 new1 fixed1 internal
Release note
Enforce a specific color support by a
FORCE_COLORvalue:false - Disables colors
0 - Disables colors
true (or unset) - Auto detects the supported colors (if no color detected, enforce truecolor)
1 - Enables 16 colors
2 - Enables 256 colors
3 - Enables truecolor
If the function argument is an empty string should be returned an empty string w/o escape codes:
ansis.red('') => '', // returns empty string w/o escape codes