progress-bar-formatter

2.0.1 • Public • Published

progress-bar-formatter

Progress bar formatter

npm version Travis Coveralls

Example

var ProgressBarFormatter = require('progress-bar-formatter');
 
var bar = new ProgressBarFormatter();
console.log (bar.format(0.4));
// ##########··············

Formatter([options])

Options:

  • complete - String
    The character that shows completion progress. Default is #.
  • incomplete - String
    The character that shows the remaining progress. Default is ·.
  • length - Number
    The length of the progress bar. Default is 24.

Formatter#format(progress) : String

Formats the progress bar. progress is a number between 0 and 1.

Readme

Keywords

Package Sidebar

Install

npm i progress-bar-formatter

Weekly Downloads

858

Version

2.0.1

License

MIT

Last publish

Collaborators

  • gagle