visionmedia / node-progress

Flexible ascii progress bar for nodejs
MIT License
2.97k stars 221 forks source link

Support for providing units with progress #172

Open jsoref opened 6 years ago

jsoref commented 6 years ago

In https://github.com/yarnpkg/lets-dev-demo/pull/3#discussion_r170458123 and https://github.com/yarnpkg/lets-dev-demo/pull/3#issuecomment-368334518, I discovered that a project could reasonably want to write :elapseds to get (number of seconds)+s.

I spend a lot of time working w/ progress bars (I've worked on them in Mozilla, VirtualBox, Mercurial, and a number of other projects).

I can understand wanting to offer a time unit, it'd be nice if the node-progress API allowed for :elapsed_time or something which automatically provided a time unit. For something >70 seconds, it's probably better to list minutes, and for something >70 minutes, it's probably better to list hours, etc.

ohare93 commented 2 years ago

🙏