Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ansis

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansis - npm Package Versions

23
7

3.9.0

Diff

webdiscus
published 3.8.1 •

webdiscus
published 3.8.0 •

Changelog

Source

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

webdiscus
published 3.7.0 •

webdiscus
published 3.6.0 •

Changelog

Source

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

webdiscus
published 3.5.2 •

Changelog

Source

3.5.2 (2024-12-28)

  • fix: TS2339: Property 'strip' does not exist on type when the TS compiler option module is node16
  • refactor: optimize index.d.ts to reduce package size from 7.3 kB to 7.0 kB
webdiscus
published 3.5.1 •

Changelog

Source

3.5.1 (2024-12-26)

  • refactor: invisible code optimisation
webdiscus
published 3.5.0 •

Changelog

Source

3.5.0 (2024-12-26)

  • release: v3.5.0
webdiscus
published 3.5.0-beta.6 •

Changelog

Source

3.5.0-beta.6 (2024-12-25)

  • refactor: optimise npm package to reduce the size
  • chore: update benchmarks with newest version
  • test: add more use cases
webdiscus
published 3.5.0-beta.5 •

Changelog

Source

3.5.0-beta.5 (2024-12-24)

  • feat: detect xterm-direct terminal as supported the truecolor
  • feat: add support the COLORTERM variable for values: truecolor, 24bit, ansi256, ansi (16 colors)
  • docs: update readme for using COLORTERM with examples
23
7
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc