0.0.5 ⢠Published 3 years ago
rainbow-terminal v0.0.5
rainbow-terminal
š Beautiful rainbow terminal

Install
npm install rainbow-terminal --saveUsage
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 bgThe usage is almost identical to gradient-string, with the following differences
rainbow-terminalhas no built-in gradient colorgradient-stringsingle-line string will clear all spaces in the stringgradient-stringdoes not support background colorsgradient-stringdoes not support solid colors, only gradientsgradient-stringdid not exportchalkgradient-stringMultiline call requiredmultiline()