Skip to content

Releases: yetnt/progressbar

v3.0.1

06 Nov 14:45
Compare
Choose a tag to compare

v3.0.0

06 Nov 14:31
Compare
Choose a tag to compare

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

v2.2.0 `charSplit()`

12 Oct 16:18
Compare
Choose a tag to compare

New Function! (check the README, i aint documenting it again)

Full Changelog: v2.1.0...v2.2.0

v2.1.0 Gub fixes

20 Sep 16:44
Compare
Choose a tag to compare

v2.0.0 JS -> TS

29 Aug 15:52
Compare
Choose a tag to compare

Entire library has moved from Javascipt to Typescript!

Of course the docs are still in JS, because you can just add the types

What's Changed

Full Changelog: v1.3.0...v2.0.0

1.3.0 Class!

22 Jul 12:01
Compare
Choose a tag to compare

Hate having a function? Now there's a class!

const pb = require("@yetnt/progressbar")

let bar = new pb.ProgressBar(56, 30, "▢", "▧", ["◁", "◀"], ["▷", "▶"]);

More info in the docs

Full Changelog: v1.2.0...v1.3.0

1.2.0 Function now accepts floats for percentage

09 Jun 10:09
Compare
Choose a tag to compare

1.0.1 (types)

09 Jun 09:20
Compare
Choose a tag to compare

Full Changelog: v1.0.0...v1.0.1

Just added types

1.0.0

08 Jun 20:11
Compare
Choose a tag to compare