@delirius/progressbar
v1.0.0
Published
A simple progress bar generator using total progress and current progress values
Downloads
3
Maintainers
Readme
About
@delirius/progressbar is a customizable progress bar generator primarily designed for WhatsApp bots, but it's also compatible with Discord.js and Telegram. It generates string representations of progress bars that can be used in chat applications.
Advantages
- Simple
- Lightweight
- Fully customizable
- 3 Different Styles
Installation
npm install @delirius/progressbar
Splitbar Usage
const progressbar = require('@delirius/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('@delirius/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 name| Type| Default| Description| |--------------| ----| :-----:| --------------------------------| |size| Integer| 40| Determines the length of the bar| |line| String| ▬ and □| Determines the Static part of the bar| |slider| String| 🔘 and ■| Determines the Progressive part of the bar|
Links
Show your support
Give a ⭐️ if this project helped you!