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

Formats a progress bar


Version published
Weekly downloads
990
decreased by-16.95%
Maintainers
1
Install size
4.38 kB
Created
Weekly downloads
 

Readme

Source

progress-bar-formatter

Formats a progress bar

NPM version

NPM installation

Example
var pbf = require ("progress-bar-formatter");

var progress = pbf.create ();
console.log (progress.format (0.4));
//##########··············
Functions
Objects

module.create([options]) : Formatter

Returns a new Formatter instance.

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

Methods


Formatter#format(n) : String

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

Keywords

FAQs

Last updated on 17 Dec 2013

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