picocolors
npmv1.1.1TypeScriptThe tiniest and the fastest library for terminal output formatting with ANSI colors
Adopt with care
picocolors is usable, with caveats. Last published 693 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 693 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 6.2 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding picocolors to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the picocolors README.
import pc from "picocolors"
console.log(
pc.green(`How are ${pc.italic(`you`)} doing?`)
)picocolors vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| picocolorsthis page | 0 | 16 | ISC | 1 year ago |
| supports-hyperlinks | 35.4M | 1 | MIT | 1 day ago |
| cli-spinners | 0 | 1 | MIT | 1 day ago |
| string-width | 0 | 3 | MIT | 1 day ago |
| ora | 0 | 6 | MIT | 1 day ago |
| cliui | 212.4M | 1 | ISC | 1 day ago |
Used by
Popular packages that depend on picocolors.
Tool for transforming styles with JS plugins
Native-ESM powered web dev build tool
Custom jest matchers to test the state of the DOM
React Native CLI
Simple and complete React Native testing utilities that encourage good testing practices.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
This package is part of the [React Native CLI](../../README.md). It contains commands for cleaning the build artifacts.
No description provided.
This package is part of the [React Native CLI](../../README.md). It contains commands for diagnosing and fixing common Node.js, iOS, Android & React Native issues.
launch editor from node.js
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.
This package is part of the [React Native CLI](../../README.md). It contains utilities for autolinking on Android platform.
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.
CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
Seamless REST/GraphQL API mocking library for browser and Node.js.
Relationship graph
Dependencies (left) and dependents (right) of picocolors.
Frequently installed together
A tiny (118 bytes), secure URL-friendly unique string ID generator
Generates and consumes source maps
An extremely fast JavaScript and CSS bundler and minifier.
No description provided.
Vite DevTools
No description provided.
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
A pure JavaScript implementation of Sass.
TypeScript definitions for node
JavaScript parser and stringifier for YAML
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Tool for transforming styles with JS plugins
Release history
No releases in the last two years, typically about 8 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.1latest | 1 year ago | 6.2 KB | ISC |
| 1.1.0 | 2 years ago | 11 KB | ISC |
| 1.0.1 | 2 years ago | 5.0 KB | ISC |
| 1.0.0 | 4 years ago | 5.5 KB | ISC |
| 0.2.1 | 5 years ago | 5.7 KB | ISC |
| 0.2.0 | 5 years ago | 5.6 KB | ISC |
| 0.1.0 | 5 years ago | 9.1 KB | ISC |
| 0.0.1 | 5 years ago | 8.4 KB | ISC |
| 0.0.0 | 5 years ago | 7.4 KB | ISC |
Overview
picocolors is an npm package that the tiniest and the fastest library for terminal output formatting with ANSI colors. It has 16 known dependents in the graph. The latest version is 1.1.1, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need the tiniest and the fastest library for terminal output formatting with ANSI colors and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (ISC).
- Zero runtime dependencies — minimal footprint.
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use picocolors?
picocolors is usable, with caveats. Last published 693 days ago.
How do I install picocolors?
Run `npm install picocolors` to add picocolors to your npm project.
What license is picocolors released under?
picocolors is distributed under the ISC license.
How popular is picocolors?
npm does not publish download counts. Within PackageGraph's crawl, 16 known packages depend on picocolors.
Is picocolors still maintained?
The most recent release of picocolors (v1.1.1) was published 1 year ago.
Does picocolors run install scripts?
No. picocolors does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.