This commit is contained in:
2026-03-18 20:54:43 +01:00
parent b3c8b77f12
commit 9fe656b34c
8058 changed files with 912898 additions and 23 deletions
+28
View File
@@ -0,0 +1,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!')))
```