JSPM

string-progressbar

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1202
  • Score
    100M100P100Q99378F
  • License MIT

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

Package Exports

  • string-progressbar

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (string-progressbar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


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

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.