terminal-progress
v1.0.10
Published
```bash pnpm i terminal-progress ```
Maintainers
Readme
Install
pnpm i terminal-progressUsage
import { progress } from 'terminal-progress'
let num = 0,
total = 200
function renderProgress(name) {
if (num <= total) {
progress({ name: name, current: num, total: total })
num++
setTimeout(function () {
renderProgress(name)
}, 10)
}
}
renderProgress('Process')Preview
# in process
⠼ Process: 174/200 | 87% [============================================> ]
# success
✔ Process: 200/200 | 100% [==================================================]