# rainbow-terminal

> 🌈 Beautiful rainbow terminal

Latest version **0.0.5** (published 2023-03-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install rainbow-terminal
pnpm add rainbow-terminal
yarn add rainbow-terminal
bun add rainbow-terminal
```

Provides the command `rainbow`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2023-03-22 |
| First published | 2023-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Lete114 |
| Maintainers | lete114 |
| Keywords | cli, color, colors, colour, rainbow, command-line, console, formatting, gradient, gradients, log, logging, shell, string, style, styles, terminal |

## Links

- npm: https://www.npmjs.com/package/rainbow-terminal
- Repository: https://github.com/CreateWheel/rainbow-terminal
- Homepage: https://github.com/CreateWheel/rainbow-terminal#readme
- Issues: https://github.com/CreateWheel/rainbow-terminal/issues
- npm.io page: https://npm.io/package/rainbow-terminal

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [tinygradient](https://npm.io/package/tinygradient.md) ^1.1.5

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2023-03-22
- 0.0.4 — 2023-03-22
- 0.0.3 — 2023-03-22
- 0.0.2 — 2023-03-22
- 0.0.1 — 2023-03-21

## README

# rainbow-terminal

🌈 Beautiful rainbow terminal

![](./screenhots.png)

## Install

```bash
npm install rainbow-terminal --save
```

## Usage

```js
const rainbow = require('rainbow-terminal')

const RGB = ['red', 'green', 'blue']

// rainbow font
console.log(rainbow(RGB)('Hello world!'))

// rainbow background
console.log(rainbow(RGB)('Hello world!', { bg: true }))
```

Cli

```bash
# rainbow font
rainbow "Hello world!" red green blue

# rainbow background
rainbow "Hello world!" red green blue bg
```

> The usage is almost identical to [gradient-string](https://github.com/bokub/gradient-string), with the following differences

- `rainbow-terminal` has no built-in gradient color
- `gradient-string` single-line string will clear all spaces in the string
- `gradient-string` does not support background colors
- `gradient-string` does not support solid colors, only gradients
- `gradient-string` did not export `chalk`
- `gradient-string` Multiline call required `multiline()`

---
_Source: https://npm.io/package/rainbow-terminal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
