Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 1007 Bytes

chalk.md

File metadata and controls

43 lines (23 loc) · 1007 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

node-style-text (Node 20.x and above)

A tiny wrapper (<300 B) on styleText from node:util, provides chainable syntax.

Project Page

npm