Package Exports
- nanocolors
- nanocolors/package.json
Readme
Nano Colors
A tiny and fast Node.js library to ANSI colors to terminal output.
Started as a fork of @jorgebucaran’s
colorettewith hacks from @lukeed’skleur. See changes between Nano Colors andcolorette.
- It is 4 times faster than
chalkfor simple use cases. - No dependencies. It takes 5 times less space in
node_modulesthanchalk. - Actively maintained. Used in many big projects like PostCSS or Browserslist.
- Auto-detects color support. You can also toggle color mode manually.
- Tree-shakable. We use a dual ESM/CJS package.
- Supports Node.js ≥ 6 and universal Node.js/browser projects.
import { green, bold } from 'nanocolors'
console.log(
green(`Task ${bold('1')} was finished`)
)
Docs
Read full docs on GitHub.