Package Exports
- tinyrainbow
Readme
tinyrainbow
a fork of picocolors, but browser friendly
Installing
// with npm
$ npm install -D tinyrainbow
// with pnpm
$ pnpm install -D tinyrainbow
// with yarn
$ yarn install -D tinyrainbowUsage
import { createColors } from 'tinyrainbow'
import { isatty } from 'node:tty'
const c = createColors(isatty(2))
console.log(c.red(c.bold('Hello, World!')))