1.0.2 • Published 2 years ago

cli-stage v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

cli-stage

Simple tool for displaying stages in the terminal demo

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()
})()