| What it is | Colours and styles for Node.js console output (npm package colors) | Terminal string styling for Node.js: colours, backgrounds and text styles | Strip ANSI escape codes from a string |
| Kind | Open source | Open source | Open source |
| Trust | 0.47 | 0.55 | 0.38 |
| Stars | 5159 | 23344 | 500 |
| Last commit | 2026-10-21 | 2026-10-22 | 2026-09-18 |
| Licence | MIT | MIT | MIT |
| Pricing | Free and open source | Free and open source | Free and open source |
| Free tier | Yes | Yes | Yes |
| Self-hostable | — | — | — |
| Ways to run it | — | — | — |
| SOC 2 | — | — | — |
| HIPAA | — | — | — |
| SSO | — | — | — |
| API | — | Yes | — |
| Plugins | — | — | — |
| MCP server | — | — | — |
| Company | Marak Squires | Sindre Sorhus | Sindre 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
| |