cli-stage
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

/cli-stage/

    Package Sidebar

    Install

    npm i cli-stage

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.39 kB

    Total Files

    6

    Last publish

    Collaborators

    • limpix31