Socket
Socket
Sign inDemoInstall

progress-bar-formatter

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    progress-bar-formatter

Progress bar formatter


Version published
Weekly downloads
880
decreased by-25.11%
Maintainers
1
Install size
4.51 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 11 Jan 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc