Files
SnowLuma/.pnpm-store/v11/files/2a/e328c9cfe6cb9dd6710d68bbf4b3a495427909133ead164ba8195f8ca813ae705c52abd9d992faf82bfcd32c986743a47b5427c0ca18c3ceeec183014ecc29
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

29 lines
508 B
Plaintext

# 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](https://www.npmjs.com/package/picocolors) with support for `exports` field.
Supports only ESM.
## Installing
```bash
# with npm
$ npm install -D tinyrainbow
# with pnpm
$ pnpm add -D tinyrainbow
# with yarn
$ yarn add -D tinyrainbow
```
## Usage
```js
import c from 'tinyrainbow'
console.log(c.red(c.bold('Hello World!')))
```