JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35311332
  • Score
    100M100P100Q236244F
  • License MIT

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 tinyrainbow

Usage

import { createColors } from 'tinyrainbow'
import { isatty } from 'node:tty'
const c = createColors(isatty(2))

console.log(c.red(c.bold('Hello, World!')))