New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

ansis

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansis - npm Package Versions

webdiscus
published 3.1.1 •

Changelog

Source

3.1.1 (2024-04-15)

  • fix: interpret FORCE_COLOR=false or FORCE_COLOR=0 as force disable colors
    others values, e.g., FORCE_COLOR=true or FORCE_COLOR=1 - force enable colors.
    See https://force-color.org.
webdiscus
published 3.1.0 •

Changelog

Source

3.1.0 (2024-04-10)

  • feat: add detection of color support when using PM2 process manager
webdiscus
published 3.0.3 •

Changelog

Source

3.0.3 (2024-04-09)

  • chore: add rollup-plugin-cleanup to remove comments from d.ts file for dist, that save yet 3 KB
  • chore: update license year
webdiscus
published 3.0.2 •

Changelog

Source

3.0.2 (2024-04-08)

  • chore: create mini version of README for NPM to minify package size
  • docs: update readme
webdiscus
published 3.0.1 •

Changelog

Source

3.0.1 (2024-04-01)

  • refactor: improve code
  • chore: reduce code bundle size from 3.8 KB to 3.4 KB
  • chore: update benchmark
  • chore: update compare tests
  • test: add more tests
  • docs: improve readme

<a id="v3-0-0" name="v3-0-0"></a>

webdiscus
published 3.0.0 •

Changelog

Source

3.0.0 (2024-03-29)

  • feat: add detection of color spaces support: TrueColor, 256 colors, 16 colors, no color
  • feat: add fallback for supported color space: truecolor —> 256 colors —> 16 colors —> no colors
  • perform: improve performance for hex() function
  • chore: size increased from 3.2 KB to 3.8 KB as new features were added
  • test: switch from jest to vitest
  • test: add tests for new features
  • docs: update readme for color spaces support

BREAKING CHANGE

In the new major version 3.x are removed unused styles and methods.

⚠️ Warning

Before update, please check your code whether is used deleted styles and methods.

webdiscus
published 2.3.0 •

Changelog

Source

2.3.0 (2024-02-15)

  • feat: add detection of additional terminals, thanks @dse, colors.js:issue #42
  • test: add test to detect various terminals
webdiscus
published 2.2.0 •

Changelog

Source

2.2.0 (2024-02-03)

  • feat: add supports the argument as number
  • test: add tests for new feature
  • chore: add features compare of different libs, just run: npm run compare
  • chore: add compare example on stackblitz
  • docs: update readme
webdiscus
published 2.1.0 •

Changelog

Source

2.1.0 (2024-01-30)

  • feat: add bgGrey and bgGray aliases for bgBlackBright
  • refactor: optimize source code
  • test: refactor tests
  • docs: update readme
webdiscus
published 2.0.3 •

Changelog

Source

2.0.3 (2023-12-14)

  • fix(index.d.ts): use function overload to make the tagged template have the correct type, #16