1. picocolors
The tiniest and the fastest library for terminal output formatting with ANSI colors
picocolors
Package: picocolors
Created by: alexeyraspopov
Last modified: Wed, 12 Apr 2023 02:45:39 GMT
Version: 1.0.0
License: ISC
Downloads: 226,704,654
Repository: https://github.com/alexeyraspopov/picocolors

Install

npm install picocolors
yarn add picocolors

picocolors

The tiniest and the fastest library for terminal output formatting with ANSI colors.

 import pc from "picocolors"

console.log(
  pc.green(`How are ${pc.italic(`you`)} doing?`)
)
  • No dependencies.
  • 14 times smaller and 2 times faster than chalk.
  • Used by popular tools like PostCSS, SVGO, Stylelint, and Browserslist.
  • Node.js v6+ & browsers support. Support for both CJS and ESM projects.
  • TypeScript type declarations included.
  • NO_COLOR friendly.

Docs

Read full docs on GitHub.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code