ansis
4.5.0 · 1 Nov 2026ISC56.7M / weekRepositoryHomepagenpmAtom feed
Upgrading ansis From 3.12.0 to 3.14.0
1 release in betweenevery note read
Release by release
- new
Added support for chromium-based browsers.\ Now you can use truecolor in the consoles of Chrome, Edge, Opera, Brave, Vivaldi and other Chromium-based browsers. Browsers that do not support ANSI codes will display black and white text.
- new
Added support for
\nas a newline in template literals, e.g.:green`Hello\nWorld`renders: - new
Function
ansis.reset()returns the reset escape code\e[0m. - new
Removed undocumented pointless dummy function
ansis(any).
- new
6 other lines we could not sort, mostly version bumps
- 3.14.0
False - Disables colors
- 3.14.0
0 - Disables colors
- 3.14.0
True (or unset) - Auto detects the supported colors (if no color detected, enforce truecolor)
- 3.14.0
1 - Enables 16 colors
- 3.14.0
2 - Enables 256 colors
- 3.14.0
3 - Enables truecolor