Skip to content

CreateWheel/rainbow-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

rainbow-terminal

๐ŸŒˆ Beautiful rainbow terminal

Install

npm install rainbow-terminal --save

Usage

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

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

About

๐ŸŒˆ Beautiful rainbow terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published