1.0.4 • Published 3 years ago

string-progressbar v1.0.4

Weekly downloads
618,223
License
MIT
Repository
github
Last release
3 years ago

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

npm.io

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

npm.io

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

Links

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.