cli-progress-lite

1.0.0 • Public • Published

cli-progress-lite

Small and simple CLI progress bar

How to use

const buildBar = require("cli-progress-lite");

const bar = buildBar(77); // The total to process, starting at 0

// And then either
bar.progress(5); // Will add 5 to the processed number
// Or
bar.progress(); // Will add 1 to the processed number
// Or
bar.update(20); // Will set the processed number to 20

Showing this in the terminal

Current progress: [■■■■■■■·························································] | 5.93%

Package Sidebar

Install

npm i cli-progress-lite

Weekly Downloads

2

Version

1.0.0

License

GPL-2.0-only

Unpacked Size

20.2 kB

Total Files

4

Last publish

Collaborators

  • luispablo