@delirius/progressbar
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

progressbar


NPM downloads

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!

Package Sidebar

Install

npm i @delirius/progressbar

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.6 kB

Total Files

5

Last publish

Collaborators

  • delirius