tinyrainbow

A small library to print colourful messages.

MIT 11 个版本
安装
npm install tinyrainbow
yarn add tinyrainbow
pnpm add tinyrainbow
bun add tinyrainbow
README

tinyrainbow

Output your colorful messages in the terminal or browser console that support ANSI colors (Chrome engines).

A small (~ 6 kB unpacked) fork of picocolors with support for exports field.

Supports only ESM.

Installing

# with npm
$ npm install -D tinyrainbow

# with pnpm
$ pnpm add -D tinyrainbow

# with yarn
$ yarn add -D tinyrainbow

Usage

import c from 'tinyrainbow'

console.log(c.red(c.bold('Hello World!')))
版本列表
3.1.0 2026-03-12
3.0.3 2025-09-08
3.0.2 2025-08-29
3.0.1 2025-08-29
3.0.0 2025-08-29
2.0.0 2025-01-13
1.2.0 2024-07-10
1.1.2 2024-07-10
1.1.1 2023-04-14
1.1.0 2023-04-13
1.0.0 2023-04-13