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?`)
)

Docs

Read full docs on GitHub.

picocolors - Installation

To install picocolors via this registry, you'll need to install via the --registry parameter with your package manager.

n

NPM

npm install picocolors --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Yarn

yarn config set registry https://js.registry.sudovanilla.org
yarn install picocolors

Learn more about the config option.

PNPM

pnpm install picocolors --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Bun Logo

Bun

bun install picocolors --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Learn more about setting this up in your bunfig.toml configuration.


For Deno, add the following to your .npmrc file in your directory:

registry="https://js.registry.sudovanilla.org"

Then run the deno install command.

picocolors - Download

Download Tarball (v1.1.1)

Integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
SHASUM 3d321af3eab939b083c8f929a1d12cda81c26b6b
Tarball https://js.registry.sudovanilla.org/picocolors/-/picocolors-1.1.1.tgz