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

ansis

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansis - npm Package Versions

1345

3.0.0

Diff

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
webdiscus
published 2.0.2 •

Changelog

Source

2.0.2 (2023-11-14)

  • fix: could not find a declaration file for module 'ansis'
webdiscus
published 2.0.1 •

Changelog

Source

2.0.1 (2023-11-03)

  • fix: missing exports of ansis.strip() and ansis.export() functions (issue was introduced in v2.0.0)
  • refactor: optimize code to reduce distributed size
  • test: add test for generated npm package in CJS and ESM mode
  • test: add test for env variables and CLI flags
  • test: add test to detect Deno
  • test: add test to detect Next.js runtime
  • docs: update readme
webdiscus
published 2.0.0 •

Changelog

Source

2.0.0 (2023-11-03)

  • feat: add supports the Deno
  • feat: add supports the Next.js edge runtime
  • feat(CHANGE): add named import for ansis:
    NEW named import: import { red } from 'ansis'.
    If you use TypeScript and your IDE show the error: TS2307: Cannot find module ansis/colors,
    then you should use the new syntax, update you code: import { red } from 'ansis/colors' --> import { red } from 'ansis'.
  • feat(DEPRECATE): OLD named import import { red } from 'ansis/colors' is deprecated, use the NEW named import
  • feat(DEPRECATE): instead of the ansi use ansi256 or alias fg
  • feat(DEPRECATE): instead of the bgAnsi use bgAnsi256 or alias bg
  • feat: optimize named export
  • feat: reduce the size of dist/ directory
  • chore: update dev dependencies, new jest requires node.js >= 14
webdiscus
published 1.6.0-beta.0 •

Changelog

Source

1.6.0-beta.0 (2023-11-01)

  • feat: add supports the Deno
  • feat: add supports the Next.js edge runtime
  • test: add tests for isSupported() function
  • chore: update dev dependencies
webdiscus
published 1.5.6 •

Changelog

Source

1.5.6 (2023-09-21)

  • chore: update dev dependencies
  • chore: add SECURITY.md
  • chore: add PULL_REQUEST_TEMPLATE.md
  • chore: update ISSUE_TEMPLATE
  • docs: update readme
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