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.5.0-beta.1 •

Changelog

Source

3.5.0-beta.1 (2024-12-23)

  • refactor: optimise npm package to reduce the size by ~1 kB, from 8.9 kB to 8.0 kB
webdiscus
published 3.5.0-beta.0 •

Changelog

Source

3.5.0-beta.0 (2024-12-21)

  • feat: add support environment variable GPG_TTY to detect it as isTTY. NOTE: in release v3.5.1 was removed as needles.
  • fix: default import in TypeScript, compiled with tsc: import ansis from 'ansis' now works so well as import * as ansis from 'ansis'
  • refactor: optimise npm package to reduce size by ~1.3 kB, from 10.3 kB to 8.9 kB
  • refactor: optimize index.d.ts, remove insignificant spaces and words, use the type with dynamic properties instead of the interface
  • test: add integration tests to execute compiled TypeScript and compare outputs with expected strings
  • test: add tests for tsc, swc and esbuild compilers
webdiscus
published 3.4.0 •

Changelog

Source

3.4.0 (2024-12-14)

  • refactor: optimise npm package to reduce size by ~1 KB, from 11.3 kB to 10.3 kB
webdiscus
published 3.4.0-beta.1 •

Changelog

Source

3.4.0-beta.1 (2024-12-12)

  • fix: url to GitHub in readme for npm package
webdiscus
published 3.4.0-beta.0 •

Changelog

Source

3.4.0-beta.0 (2024-12-12)

  • refactor: invisible code optimisations
  • refactor: optimize readme for npm package to save ~400 bytes
  • refactor: optimize index.d.ts for npm package to save ~500 bytes
  • test: refactor benchmark tests
  • test: add new representative benchmark tests for using 1, 2, 3 and 4 styles
  • test: add picocolors complex benchmark test
  • docs: update readme
webdiscus
published 3.3.2 •

Changelog

Source

3.3.2 (2024-07-23)

  • fix: correct detect TTY on Windows platform
  • chore: optimize code to reduce the size by ~50 bytes
  • chore: add benchmarks for kolorist package
  • test: add test matrix for windows on GitHub
  • docs: add compare the size of most popular packages
webdiscus
published 3.3.1 •

Changelog

Source

3.3.1 (2024-07-18)

  • chore: optimize code to reduce the size by ~600 bytes,
  • chore: minify index.d.ts to reduce the size by ~200 bytes,
  • chore: increase performance, e.g. using chained styles, 70.000.000 -> 80.000.000 ops/sec
webdiscus
published 3.3.0 •

Changelog

Source

3.3.0 (2024-07-14)

  • feat(BREAKING CHANGE): remove old named import DEPRECATED in v2.0.0 (2023-11-03). If you update the package from v1.x to v3.3.0 then check your code:
    ESM
    - import { red } from 'ansis/colors';
    + import { red } from 'ansis';
    
    CJS
    - const { red } = require('ansis/colors');
    + const { red } = require('ansis');
    
  • chore: cleanup/optimize package.json for npm package
webdiscus
published 3.2.1 •

Changelog

Source

3.2.1 (2024-07-12)

  • chore: reduce unpacked size by ~ 1 KB
  • docs: optimize README for NPM
webdiscus
published 3.2.0 •

Changelog

Source

3.2.0 (2024-04-24)

  • feat: add ansis.isSupported() method to detect color support