Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose elapsed (and other tokens) on progressbar object #210

Open
AncientSwordRage opened this issue Jul 11, 2021 · 0 comments
Open

Expose elapsed (and other tokens) on progressbar object #210

AncientSwordRage opened this issue Jul 11, 2021 · 0 comments

Comments

@AncientSwordRage
Copy link

Currently the way tokens work is via local variables that are put into the string directly.

Would it be possible to expose :elapsed and some other tokens on progressbar, mainly so I can do the following:

const progressBar = new ProgressBar({callback: console.log("Competed in " + this.elapsed + " seconds")})

Or whatever the equivalent would be?

If this is already possible, could the readme/examples be updated to show how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant