Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 771 Bytes

chalk.md

File metadata and controls

35 lines (19 loc) · 771 Bytes

chalk

chalk, cli-color, and similar libraries have various alternatives which are lighter and faster.

Alternatives

picocolors

A widely used alternative which is much lighter and faster.

Project Page

npm

ansis

A lighter alternative which also supports 256 color creation.

Project Page

npm

styleText (Node 20.x and above)

Node itself has a styleText function in the built-in util library.

You can use it like so:

import { styleText } from 'node:util';

styleText('green', 'Success!')

Project Page