Back to Explore

jorgebucaran/colorette

GitHub
1 watchersOpen source

Last release:

Colorette is a small Node.js utility for setting terminal text colors and styles using ANSI codes, with automatic detection of whether the terminal supports color. It provides functions like `blue`, `bold`, and `underline`, and a `createColors` option to override color detection (also honoring `NO_COLOR` and related flags).

Project status

  • Maintenance status: The most recent published updates in the provided history are from 2023-04-16 (v2.0.20), with no additional update entries shown since then. A GitHub upstream push occurred on 2025-10-03, but there is no corresponding evidence of new released updates after v2.0.20, so the project appears largely quiet or in maintenance mode.
  • Update cadence: Infrequent, with updates spaced years apart in the visible changelog (for example, v2.0.19 and v2.0.18 in 2022, then v2.0.20 in 2023). After 2023, there is no evidence of further published updates up to 2026-08-12.

AI summary generated

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

Recent updates

  • 2.0.20

    Release 2.0.20 updates the package metadata to improve TypeScript support. It adds an explicit `types` entry to the `exports` map in `package.json` so TS-aware tooling can resolve the type declarations for the main entry.

    Features
  • 2.0.19

    Release 2.0.19 updates the package version and adjusts initialization logic to better handle environments where `process` (and therefore `env`, `argv`, `platform`) may be undefined. Specifically, it adds safe defaults for these values to avoid runtime errors when checking color-related environment variables and CLI flags.

  • 2.0.18

    Release 2.0.18 includes a small internal refactor aimed at improving compatibility with Vite (and related bundlers), and a change to how `process` is accessed. The only code changes are in `index.js`, plus a version bump in `package.json`.

  • 2.0.17

    Release 2.0.17 focuses on terminal color detection correctness and consistent return types from color functions. It adds explicit handling for dumb terminals (especially on Windows) and ensures the color API returns strings.

    Breaking
  • 2.0.16

    Version 2.0.16 mainly updates benchmark output formatting and refreshes the README branding to include the 🌈 emoji. The code diff shows no functional library logic changes, only changes to bench output formatting, package metadata description, and documentation.

  • 2.0.15

    Release 2.0.15 contains a small internal optimization related to how the library scans strings to clear ANSI color “bleeding” sequences. The code changes are confined to internal helper functions and test/doc wording updates, with no clear exported API changes shown in the diff.

  • 2.0.14

    Release 2.0.14 focuses on fixing terminal color “bleeding” by changing the implementation to clear escape sequences using string slicing instead of regular expressions. It also adds/updates tests to cover legacy Node 10 support.

  • 2.0.12

    Release 2.0.12 updates colorette with a small change to the core string-wrapping logic in index.js, specifically around how empty or undefined input is handled. The release notes only mention reversing a conditional expression, and the code diff matches that scope.

  • 2.0.13

    Version 2.0.13 adds command-line flag support so color output can be enabled or disabled via arguments. The implementation also includes an internal refactor of the ANSI escape sequence wrapping logic to improve handling of nested styles.

    Features
  • 2.0.11

    Release 2.0.11 makes a small change to how the color-wrapping logic in `index.js` treats empty and undefined inputs, with the goal of improving runtime performance. The release notes only mention avoiding explicit `undefined` checks, and the diff also updates tests to cover additional input values.