Socket
Socket
Sign inDemoInstall

string-progressbar

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    string-progressbar

A simple progress bar generator using total progress and current progress values


Version published
Weekly downloads
3.6K
decreased by-97.25%
Maintainers
1
Install size
7.21 kB
Created
Weekly downloads
 

Readme

Source

progressbar


Discord server NPM downloads

About

String Progressbar is a customizable progress bar generator manily made for discord bots that are made in Discord.js and Eris. It generates string so its pretty much usable everywhere.

Advantages

  • Simple
  • Lightweight
  • Fully customizable
  • 2 Different Styles

Installation

npm install string-progressbar

Splitbar Usage

const progressbar = require('string-progressbar');
// Assaign values to total and current values
var total = 100;
var current = 50;
// First two arguments are mandatory
progressbar.splitBar(total, current, [options]);
// Returns: Array<String, String>

Filledbar Usage

const progressbar = require('string-progressbar');
// Assaign values to total and current values
var total = 100;
var current = 50;
// First two arguments are mandatory
progressbar.filledBar(total, current, [options]);
// Returns: Array<String, String>

Optional Parameters

Parameter nameTypeDefaultDescription
sizeInteger40Determines the length of the bar
lineString▬ and □Determines the Static part of the bar
sliderString🔘 and ■Determines the Progressive part of the bar

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.

Keywords

FAQs

Last updated on 07 May 2021

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