1.0.10 • Published 1 year ago

terminal-progress v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Install

pnpm i terminal-progress

Usage

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% [==================================================]
1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago