aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/tinyrainbow/README.md
blob: 3f00fdf722368c07fbe00cb7c10d23821ea7598b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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!')))
```