picocolors
Tiny, zero-dependency terminal output formatting with ANSI colors.
Fit
Bundle (gzip)
383 B
719 B raw
Install size includes transitive dependencies. Bundle size is gzipped browser payload.
Freshness
The Problem
Terminal logging and CLI output often need lightweight color formatting, but many color libraries are large or require too many dependencies.
What It Does
picocolors provides a tiny API for ANSI color styling in console output. It focuses on speed, zero dependencies, and minimal bundle size for Node.js and CLI tools.
Installation
npm install picocolorsUsage Example
import { green, red, bold } from "picocolors";
console.log(green("Success:"), bold("Deployment complete."));
console.error(red("Error:"), "Unable to connect to the database.");Related packages
Unified TypeScript SDK for building AI-powered apps — switch between 20+ LLM providers without rewriting code.
animejsGeneral JSLightweight JavaScript animation library with a tiny footprint and a powerful, expressive API.
AOSGeneral JSAn easy-to-use library that makes elements fade, slide, or zoom into view as the user scrolls down your page.
archiverGeneral JSStreaming interface for generating ZIP and TAR archives in Node.js — create compressed archives programmatically from files, directories, and buffers.
@formkit/auto-animateGeneral JS> Add smooth transitions to any element with a single line — zero-config animations for adds, removes, and moves.