cli-stage
v1.0.2
Published
CLI tool for visualizing stages
Downloads
7
Readme
cli-stage
Simple tool for displaying stages in the terminal
Example
import { CliStage } from 'cli-stage'
const wait = timeout => new Promise(r => setTimeout(r, timeout))
;(async () => {
const cls = new CliStage('Installing', 'Building', 'Packing')
cls.start()
await wait(5000)
cls.success()
await wait(5000)
cls.success()
await wait(5000)
cls.error()
})()