</>PackageGraphPackageGraph

picocolors

npmv1.1.1TypeScript

The 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

6.2 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
picocolorsthis page016ISC1 year ago
supports-hyperlinks35.4M1MIT1 day ago
cli-spinners01MIT1 day ago
string-width03MIT1 day ago
ora06MIT1 day ago
cliui212.4M1ISC1 day ago

Used by

Popular packages that depend on picocolors.

postcssnpm

Tool for transforming styles with JS plugins

249.3M/wk7 dependentsMITTS
vitenpm

Native-ESM powered web dev build tool

158.6M/wk26 dependentsMIT
@testing-library/jest-domnpm

Custom jest matchers to test the state of the DOM

56M/wk6 dependentsMITTS
@react-native-community/clinpm

React Native CLI

0/wk3 dependentsMITTS
@testing-library/react-nativenpm

Simple and complete React Native testing utilities that encourage good testing practices.

0/wk10 dependentsMITTS
@react-native-community/cli-confignpm

This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.

0/wk2 dependentsMITTS
@react-native-community/cli-cleannpm

This package is part of the [React Native CLI](../../README.md). It contains commands for cleaning the build artifacts.

0/wk1 dependentsMITTS
@react-native-community/cli-toolsnpm

No description provided.

0/wk9 dependentsMITTS
@react-native-community/cli-doctornpm

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.

0/wk1 dependentsMITTS
launch-editornpm

launch editor from node.js

0/wk2 dependentsMITTS
@react-native-community/cli-platform-applenpm

This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.

0/wk2 dependentsMITTS
@react-native-community/cli-platform-androidnpm

This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.

0/wk2 dependentsMITTS
@react-native-community/cli-config-androidnpm

This package is part of the [React Native CLI](../../README.md). It contains utilities for autolinking on Android platform.

0/wk1 dependentsMITTS
@react-native-community/cli-config-applenpm

This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.

0/wk1 dependentsMITTS
update-browserslist-dbnpm

CLI tool to update caniuse-lite to refresh target browsers from Browserslist config

0/wk1 dependentsMITTS
mswnpm

Seamless REST/GraphQL API mocking library for browser and Node.js.

0/wk5 dependentsMITTS

Relationship graph

Dependencies (left) and dependents (right) of picocolors.

Frequently installed together

Release history

No releases in the last two years, typically about 8 days apart.

Recent versions of picocolors
VersionPublishedSizeLicense
1.1.1latest1 year ago6.2 KBISC
1.1.02 years ago11 KBISC
1.0.12 years ago5.0 KBISC
1.0.04 years ago5.5 KBISC
0.2.15 years ago5.7 KBISC
0.2.05 years ago5.6 KBISC
0.1.05 years ago9.1 KBISC
0.0.15 years ago8.4 KBISC
0.0.05 years ago7.4 KBISC

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

Keywords

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.