1.0.0 • Published 2 years ago

@delirius/progressbar v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

npm.io

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

npm.io

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 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!

1.0.0

2 years ago

1.0.2

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago