Repository navigation
v3.0.0
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 :
Last Edge Override is provided
AND
Bar's percentage is 100%
All Properties in the Class now update the bar.
New Contributors
- @FloShutUp made their first contribution in #2
Full Changelog: v2.2.0...v3.0.0