Skip to main content

Built and signed on GitHub Actions

A really simple function to just apply a cool rainbow effect to text provided in, for Deno 🦕

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
a month ago (0.1.2)

Rainbow Text

A really simple function to just apply a cool rainbow effect to text provided in; built with Deno 🦕 but runs most places 🌈

Example

This is the same for Deno, Bun or Node.js:

import { rainbowText } from '@sadev/rainbow';

console.log(rainbowText("Hello World!"));

Hello World in a rainbow color

See dinosaur.ts to produce: An rainbow colored ASCII dinosaur

See rocket.ts to produce: The team rocket motto in a rainbow color

Installation

rainbow is available on jsr:

Deno

deno add @sadev/rainbow

npm

npx jsr add @sadev/rainbow

Bun

bunx jsr add @sadev/rainbow

Yarn

yarn dlx jsr add @sadev/rainbow

pnpm

pnpm dlx jsr add @sadev/rainbow

License

Licensed under the Apache License, Version 2.0. See LICENSE for more.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@sadev/rainbow

Import symbol

import * as mod from "@sadev/rainbow";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@sadev/rainbow";

Add Package

npx jsr add @sadev/rainbow

Import symbol

import * as mod from "@sadev/rainbow";

Add Package

yarn dlx jsr add @sadev/rainbow

Import symbol

import * as mod from "@sadev/rainbow";

Add Package

pnpm dlx jsr add @sadev/rainbow

Import symbol

import * as mod from "@sadev/rainbow";

Add Package

bunx jsr add @sadev/rainbow

Import symbol

import * as mod from "@sadev/rainbow";