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

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
- No dependencies
- Tree-shakeable
- Underline colors are only visible when an underline style is also applied
yoctocolors at a glance
- Category
- Development › Developer Tools
- 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
Guides for Developer Tools
yoctocolors alternatives
Tools and sites you could use instead, ranked by how closely they match.
Record terminal commands and output as shareable videos using VHS, a command-line session recording tool.
Awesome CLI provides a command-line tool for browsing and exploring Awesome lists.
Find coding answers from the command line with howdoi, an instant programming help tool.
Schedule and manage shell commands with pueue, a command-line task queue.
Search directories recursively for regular expression matches with ripgrep, while respecting gitignore rules.
Explore command-line utilities and other tools for Go projects in this repository collection.
Popular in Developer Tools
Well-known listings from the same topic.
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.













