Skip to content
Progress bar formatter.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
.travis.yml
CHANGES
LICENSE
README.md
package.json

README.md

progress-bar-formatter

Progress bar formatter

npm 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.

Something went wrong with that request. Please try again.