๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
DemoInstallSign in
Socket

progress-bar-formatter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

progress-bar-formatter

Progress bar formatter

2.0.1
latest
Source
npm
Version published
Weekly downloads
2.1K
174.34%
Maintainers
1
Weekly downloads
ย 
Created
Source

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.

Keywords

progress

FAQs

Package last updated on 11 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts