yoctocolors

Add colored output to command-line applications with the yoctocolors package.

github.com/sindresorhus/yoctocolors
yoctocolors homepage screenshot

About yoctocolors

yoctocolors is a package for adding colors to JavaScript command-line output. It offers foreground, background, underline and modifier styles such as bold and dim, handles nested colors, and provides basic color detection. Some styles such as italic and several underline variants are noted as not widely supported. Separate ESM and CommonJS installs are documented, with FORCE_COLOR and NO_COLOR variables for control.

Pricing is not clearly stated.

Key features

  • Foreground colors including bright variants
  • Background colors including bright variants
  • Text modifiers such as bold, dim and strikethrough
  • Separate underline colors for underlined text
  • Nested color handling in output strings
  • Color control via FORCE_COLOR and NO_COLOR variables
Best for: JavaScript command-line tools adding basic terminal colors.
Good for
  • No dependencies
  • Tree-shakeable
Watch out for
  • Underline colors are only visible when an underline style is also applied

yoctocolors at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Details verified
Oct 22, 2026 · Official source
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

yoctocolors alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing