Skip to content

v3.0.0

Choose a tag to compare

@yetnt yetnt released this 06 Nov 14:31
· 2 commits to main since this release

What's Changed

  • Added a discord.js example, added an image folder for the logo, discord output and future use by @FloShutUp in #2

Major for Edge Overrides

Edge Overrides when initialized via the class, can be left empty, but will be left as an empty array. Make sure edge overrides are always arrays!

charSplit method

To seprate a bar with some value (Replace the last filled char), you can use the charSplit() method.

let bar = new ProgressBar(56, 30, "▢", "▧");
bar.bar; // ▧▧▧▧▧▧▧▧▧▧▧▧▧▧▧▧▢▢▢▢▢▢▢▢▢▢▢▢▢▢
bar.charSplit("▶");
bar.bar; // ▧▧▧▧▧▧▧▧▧▧▧▧▧▧▧▶▢▢▢▢▢▢▢▢▢▢▢▢▢▢

The bar will NOT charSplit if :

  1. Last Edge Override is provided

    AND

  2. Bar's percentage is 100%

All Properties in the Class now update the bar.

New Contributors

Full Changelog: v2.2.0...v3.0.0