Skip to content

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

@AncientSwordRage

Description

@AncientSwordRage

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions