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

ansis

Package Overview
Dependencies
Maintainers
0
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansis - npm Package Versions

1245
9

3.15.0-beta.2

Diff
webdiscus
published 3.15.0-beta.2 •

Changelog

Source

3.15.0-beta.2 (2025-02-15)

  • refactor: slight reduce the package size
webdiscus
published 3.15.0-beta.1 •

Changelog

Source

3.15.0-beta.1 (2025-02-15)

  • feat: remove "main" from package.json, since Ansis is a dual package using "exports".
    Note:
    • requires Node >= v12.7.0 to support "exports".
    • npm does not require "main" for publishing a package.
    • Node.js prioritizes "exports" over "main" when resolving modules.
    • Modern bundlers and tools (like Webpack, Rollup, and TypeScript) also use "exports".
  • docs: add to README the Compatibility Check for tools and browsers.
webdiscus
published 3.15.0-beta.0 •

Changelog

Source

3.15.0-beta.0 (2025-02-14)

  • feat: reduce the package size by ~100 bytes
  • refactor: invisible micro optimisations
webdiscus
published 3.14.0 •

Changelog

Source

3.14.0 (2025-02-13)

  • feat: add support for chromium-based browsers.
    Now you can use truecolor in the consoles of Chrome, Edge, Brave, and other Chromium-based browsers. Browsers that do not support ANSI codes will display black and white text.
  • refactor: slight reduce the package size by ~40 bytes.
webdiscus
published 3.12.0 •

Changelog

Source

3.12.0 (2025-02-11)

  • feat: add support for \n as a newline in template literals, e.g.: green`Hello\nWorld` renders:
    Hello
    World
    
webdiscus
published 3.11.0 •

Changelog

Source

3.11.0 (2025-02-09)

  • feat: add support for legacy Node.js v14 (in package.json for npm was changed the engines to "node": ">=14")
  • test: add test in GitHub workflow for legacy Node.js versions: 14, 16
  • chore: update dev dependencies
webdiscus
published 3.10.0 •

Changelog

Source

3.10.0 (2025-01-27)

  • feat: ansis.reset() returns the reset escape code \e[0m
  • feat: micro optimisations for slight performance improvements
  • chore: code cleanup
  • docs: update readme
webdiscus
published 3.9.0 •

Changelog

Source

3.9.0 (2025-01-13)

  • feat: revert handling of null and undefined values to empty string as before v3.7.0, #25
webdiscus
published 3.8.1 •

Changelog

Source

3.8.1 (2025-01-10)

  • refactor: optimize package size
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