Home

Awesome

Usage

A simple CLI progress bar, inspired by Gauge.

var ProgressBar = require('cli-progress-bar')

var bar = new ProgressBar()

bar.show("Foo", 0.75)

bar.pulse("bar")

bar.hide()

screenshot 2015-10-15 02 58 33

API

var bar = new ProgressBar([options])

The options object can have the following properties, all of which are optional:

bar.show([name, [completed]])

bar.hide()

Removes the progress bar from the terminal.

bar.pulse([name])

Spins the spinner in the progress bar to show output. If name is included then it will be combined with the last name passed to bar.show() using the subsection property of the theme (typically a right facing arrow).