Marak/colors.js
get colors in your node.js console observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5927
- days_rel: n/a
- days_push: 1176
- n_releases_24m: 0
Adoption not part of the score
5166 stars · 442 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
colors.js is a Node.js library that adds ANSI color and style methods to console output, including text colors, background colors, and styles like bold and underline. It supports both a String.prototype extension API and a safe mode that does not modify native prototypes.
Use cases
- colorize console.log output in node.js
- add colored text to CLI tool output
- print styled terminal messages with bold or underline
- add background colors to terminal text
- print rainbow or themed text for fun CLI output
- auto-detect terminal color support in a node app
When to choose
- you want a tiny, simple, zero-dependency way to colorize Node.js console output
- you prefer String.prototype chaining like 'hello'.green
- you need a safe mode that avoids extending native prototypes
When to avoid
- you need actively maintained software with a clear license
- you want advanced features like 256-color or truecolor support and theme ecosystems
- you are building a large CLI where a more modern library like chalk is preferable
Facets
library · maturity maintenance
developer-tools cli terminal-ui developer-tools cli cross-platform ansi-colors console-styling string-prototype npm command-line nodejs
2 sources
- readme: https://github.com/Marak/colors.js · fetched 2026-08-28 · fcfc22d214fd
- homepage: https://github.com/Marak/colors.js · fetched 2026-08-29 · ffb3ae652613
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Marak/colors.js | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem