0.2.6 • Published 6 years ago

lbar v0.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

A collection of animated javascript loading bars and spinners for the command line.

Installation NPM:

npm install lbar

Getting Started

const spinner = require('lbar');

NPM loading bar example Working indicator example lbar version 0.2.1 currently offers seven indicators at this time with even more creative ones in the works, although for demonstration purposes we will be using the NPM inspired spinner

var npmSpinner = spinner.npm;

This saves the NPM style spinner to this variable for future use.

npmSpinner.update(50)

providing an integer here will cause the bar to update the progress position at the next spin tick.

npmSpinner.finish()

This automatically sets the spinner's progress to 100% and stops the spinner updating. The second way to stop the spinner is to make it display an error by calling the following:

npmSpinner.error(<error message>)

This filles the bar with red X's and displays the error at the next free position on that line, whilst stopping the spinner entirely.

spin.list()
0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago