Back to Explore

doowb/ansi-colors

GitHub
1 watchersOpen source

Last release:

ansi-colors is a Node.js library for styling terminal text with ANSI colors and symbols. It’s described as a faster drop-in replacement for chalk, supporting chained and nested colors, optional color enable/disable, and stripping ANSI codes via an .unstyle method.

Project status

  • This source appears quiet and effectively dormant, last upstream push was 2022-07-11, and today is 2026-08-12, so there have been no observed updates for several years.
  • The apparent updates cadence is sporadic, with versions 4.1.1 in 2019 and then a short burst in 2022 (4.1.2 on 2022-05-15, 4.1.3 on 2022-05-16, with no further updates evidenced afterward).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 4.1.3

    Release 4.1.3 contains a very small set of runtime-compatibility changes. The release notes provided are empty, so the documented change surface is effectively none.

  • 4.1.2

    Release 4.1.2 has no publisher-provided release notes. The code diff shows small runtime logic adjustments, but the largest change is a substantial update to the TypeScript declarations, including a rework of symbol typings and module export typing structure.

  • 4.1.1

    Release 4.1.1 was published on 2019-07-03, but the publisher provided no release notes or change descriptions. As a result, there is insufficient information to determine whether this version includes new features, breaking changes, bug fixes, security patches, or dependency updates.

  • 4.1.0

    Release 4.1.0 has no publisher-provided release notes. The code diff shows a refactor of the core styling pipeline in index.js, including new chaining support for unstyle/noop and stricter validation when defining themes and aliases.

    BreakingFeatures
  • 4.0.1

    Release 4.0.1 only bumps the package version to 4.0.1. No release notes are provided, so the documented changelog is effectively empty and all behavioral changes must be inferred from the code diff.

  • 4.0.0

    Release 4.0.0 (from 3.2.3) introduces custom styling via new APIs, including the ability to define aliases and themes. The code also changes how ANSI sequences are detected/stripped (via a replaced ansiRegex), adjusts newline-wrapping behavior, and updates the exported symbol set based on terminal (including a Hyper-specific branch). Release notes were not provided, so several behavior-relevant changes are not documented there.

    BreakingFeatures
  • 3.2.3

    Release 3.2.3 includes a small code change in the core color parsing helpers. The bundled release notes are empty, so the only observable behavioral change comes from the actual diff and the added test coverage.

  • 3.2.2

    No release notes were provided for version 3.2.2. The code diff shows behavioral changes in how ANSI sequences are generated and detected, including environment-based color enabling (FORCE_COLOR) and updated handling for nested styles.

    Features
  • 3.0.6

    Release 3.0.6 includes a set of internal rendering and API surface enhancements centered in index.js, plus additional symbols and updated benchmarks/docs. The release notes are absent, so the only authoritative view of changes comes from the code diff. Overall, the changes add new helper functions and aliases (for stripping/ANSI detection) and adjust how styling behaves for empty input.

    Features
  • 3.0.5

    Release 3.0.5 was published on 2018-08-24, but the publisher did not provide release notes. As a result, there is no documented information about new features, bug fixes, security updates, or potential breaking changes in this release.