https://github.com/limpix31/cli-stage
https://github.com/limpix31/cli-stage
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/limpix31/cli-stage
- Owner: LIMPIX31
- Created: 2022-02-08T08:39:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-15T22:54:09.000Z (almost 4 years ago)
- Last Synced: 2025-04-10T00:38:10.952Z (over 1 year ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cli-stage
**Simple tool for displaying stages in the terminal**

## Example
```js
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()
})()
```