https://github.com/createwheel/rainbow-terminal
🌈 Beautiful rainbow terminal
https://github.com/createwheel/rainbow-terminal
Last synced: 8 months ago
JSON representation
🌈 Beautiful rainbow terminal
- Host: GitHub
- URL: https://github.com/createwheel/rainbow-terminal
- Owner: CreateWheel
- License: mit
- Created: 2023-03-21T13:44:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T09:55:52.000Z (about 3 years ago)
- Last Synced: 2025-07-08T15:57:20.154Z (11 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rainbow-terminal
🌈 Beautiful rainbow terminal

## 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()`