Changelog
3.8.0 (2025-01-09)
feat: enforce a specific color support by a FORCE_COLOR
value:
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
fix: if the function argument is an empty string should be returned an empty string w/o escape codes:
ansis.red('') => '', w/o escape codes
refactor: optimize code by size
Changelog
3.6.0 (2025-01-04)
feat: remove undocumented pointless dummy function ansis(any)
[!WARNING] This is not a BREAKING CHANGE because it was never officially documented!
import ansis from 'ansis'; ansis('text'); <= now will occur the ERROR TS2349: This expression is not callable.
This warning applies only to projects where Chalk was replaced with Ansis and something like
chalk('text')
was used.Just replace
ansis('text')
with'text'
.The
ansis('text')
function was a dummy and did nothing except return the same input string.
chore: update license to current date
Changelog
3.5.2 (2024-12-28)
module
is node16
Changelog
3.5.0-beta.6 (2024-12-25)