JSPM

string-progressbar

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

A simple progress bar generator using total and current 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

Installation

npm install string-progressbar

Usage

const createBar = require('string-progressbar');
// assaign values to total and current
var total = 100;
var current = 50;
// Call the createBar method, first two arguments are mandatory
// size (length of bar) default to 40, line default to '▬' and slider default to 🔘
createBar(total, current, size, line, slider);
// There you go, now you have progress bar and percentage returned in an array as string

Preview

Progress Bar

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.