talira

Compare

colors.jsChalkstrip-ansi
What it isColours and styles for Node.js console output (npm package colors)Terminal string styling for Node.js: colours, backgrounds and text stylesStrip ANSI escape codes from a string
KindOpen sourceOpen sourceOpen source
Trust0.470.550.38
Stars515923344500
Last commit2026-10-212026-10-222026-09-18
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———
CompanyMarak SquiresSindre SorhusSindre Sorhus
Features
  • 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
  • Chainable and nestable styles
  • 256-colour and Truecolor support
  • Auto-detects colour support
  • No dependencies
  • removes ANSI colour and style codes
  • removes OSC hyperlink sequences
  • consistent across Node.js versions
Limitations
  • 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.
  • Chalk 5 and later are ESM only; CommonJS projects stay on Chalk 4