talira

Compare

Chalkcolors.jsstrip-ansiInk
What it isTerminal string styling for Node.js: colours, backgrounds and text stylesColours and styles for Node.js console output (npm package colors)Strip ANSI escape codes from a stringReact for interactive command-line apps
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.550.470.380.76
Stars23344515950040321
Last commit2026-10-222026-10-212026-09-182026-11-24
LicenceMITMITMITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
APIYes———
Plugins————
MCP server————
CompanySindre SorhusMarak SquiresSindre Sorhus—
Features
  • 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
  • removes ANSI colour and style codes
  • removes OSC hyperlink sequences
  • consistent across Node.js versions
  • React components and hooks for terminal output
  • Flexbox layout with Yoga
  • all React features supported
  • test CLI output as components
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.