talira

Compare

strip-ansiChalkcolors.js
What it isStrip ANSI escape codes from a stringTerminal string styling for Node.js: colours, backgrounds and text stylesColours and styles for Node.js console output (npm package colors)
KindOpen sourceOpen sourceOpen source
Trust0.380.550.47
Stars500233445159
Last commit2026-09-182026-10-222026-10-21
LicenceMITMITMIT
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API—Yes—
Plugins———
MCP server———
CompanySindre SorhusSindre SorhusMarak Squires
Features
  • removes ANSI colour and style codes
  • removes OSC hyperlink sequences
  • consistent across Node.js versions
  • Chainable and nestable styles
  • 256-colour and Truecolor support
  • Auto-detects colour support
  • No dependencies
  • text, bright, background and bright background colours
  • styles such as bold, dim, italic and underline
  • rainbow and other text effects
  • a safe mode that doesn't extend String.prototype
  • custom themes
Limitations
    • Chalk 5 and later are ESM only; CommonJS projects stay on Chalk 4
    • The repository's master branch (version 1.4.44-liberty-2, January 2022) loops forever printing garbled text when imported, so don't install it from GitHub; npm serves 1.4.0.
    • By default it extends String.prototype; use colors/safe to avoid that.
    • npm's latest release, 1.4.0, dates from September 2019.