ansis
4.5.0 · 1 Nov 2026ISC56.7M / weekRepositoryHomepagenpmAtom feed
62 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.3.5
27 Apr 2022DEPRECATED: this version is broken
1.3.4
30 Jan 2022Optimize distributed code size to smaller than
4 KB
1.3.3
24 Jan 2022Only updates dependencies, nothing else changes.
1.3.2
30 Dec 2021Add bundle generation for ESM
Add bundle generation for ESM
1.3.1
29 Dec 2021Usage for CommonJS:
const ansis = require('ansis').default;-->const ansis = require('ansis');
1.3.0
29 Dec 2021Add support CommonJS (now supported ESM and CommonJS)
Add aliases:
.fg()for.ansi256()and.bg()for.bgAnsi256()methods. DEPRECATED methods:ansi,ansi256,bgAnsi,bgAnsi256- usefgandbginstead.Some inner param types
Add support CommonJS (now supported ESM and CommonJS)
Add aliases:
.fg()for.ansi256()and.bg()for.bgAnsi256()methods. DEPRECATED methods:ansi,ansi256,bgAnsi,bgAnsi256- usefgandbginstead.Some inner param types
1.2.2
28 Dec 2021Added supports the environment variables
NO_COLOR FORCE_COLORand flags--no-color--colorAdded aliases
.ansi()for.ansi256()and.bgAnsi()for.bgAnsi256()methodsAdded support for the use of
openandcloseproperties for each style
Cumulative Release
v1.1.0-v1.2.2Features
Added supports the environment variables
NO_COLOR FORCE_COLORand flags--no-color--colorAdded aliases
.ansi()for.ansi256()and.bgAnsi()for.bgAnsi256()methodsAdded support for the use of
openandcloseproperties for each styleImprove performance
Bug Fixes
Fixed ANSI codes for
ansi256()andbgAnsi256()methods
1.2.1
28 Dec 2021Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
1.2.0
28 Dec 2021Add supports the environment variables
NO_COLORFORCE_COLORand flags--no-color--colorAdd aliases
ansiforansi256andbgAnsiforbgAnsi256
Add supports the environment variables
NO_COLORFORCE_COLORand flags--no-color--colorAdd aliases
ansiforansi256andbgAnsiforbgAnsi256
1.1.1
27 Dec 2021Add the class Ansis to create more independent instances to increase the performance by benchmark
Improve performance
Add the class Ansis to create more independent instances to increase the performance by benchmark
Improve performance
1.1.0
25 Dec 2021Add supports the use of
openandcloseproperties for each styleCodes for methods ansi256() and bgAnsi256()
Add supports the use of
openandcloseproperties for each styleCodes for methods ansi256() and bgAnsi256()
1.0.0
24 Dec 2021First release