# Marak/colors.js

get colors in your node.js console

Repository: https://github.com/Marak/colors.js
Canonical: https://ross.abutalabs.com/products/colorsjs
Homepage:  https://github.com/Marak/colors.js
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2023-06-14T06:56:47+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5927, "days_push": 1176, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5166, forks 442 (observed 2026-08-28T04:09:11.557501+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: developer-tools, cli, terminal-ui
- domain: developer-tools
- platform: cli, cross-platform
- tags: ansi-colors, console-styling, string-prototype, npm, command-line, nodejs

## Member repositories
- Marak/colors.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.557501+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:01:52.323292+00:00, confidence not recorded.
  - readme: https://github.com/Marak/colors.js (fetched 2026-08-28T04:09:11.557501+00:00, sha fcfc22d214fd)
  - homepage:  https://github.com/Marak/colors.js (fetched 2026-08-29T08:56:07.383660+00:00, sha ffb3ae652613)
- Data as of 2026-08-30T08:39:29.467469+00:00.
