npm.io
1.0.4 • Published 3 years ago

ascii-progressbar

Licence
MIT
Version
1.0.4
Deps
0
Size
8 kB
Vulns
0
Weekly
0
Stars
1

ascii-progressbar

A simple graphical ascii progressbar written in JS

Usage

var progressbar = require('ascii-progressbar');
progressbar.setConfig(
    "text:Progress",    // text to display to the left of the progressbar
    "indicator:🟩",      // progress indicator (you can use any char also emoji)
    "pLength:10"        // Progressbar length
);
progressbar.setProgress(50); // set progress of the progressbar

Installation

npm i ascii-progressbar

Output

alt text

Keywords