node-progress
node-progress copied to clipboard
Feature proposal - indeterminable progress bar (unknown total)
In some situations you may not know the total number of ticks, but want some progress reporting nonetheless.
Right now I have two particular use-cases in mind, but I'm sure there are more:
- HTTP downloading with unset
content-length
header. - Parsing data feed of some unknown length.
Here is how I solved this problem in my clj-progress
module (node-progress
port to Clojure):
(with-progress-bar " [:wheel][:bar] :done/:total :elapseds :percent :etas"
(init -1) ; non-positive total
(...); some code calling (tick)
(done))
It will be very nice to have something like that in node-progress
as well.
If you'll approve my proposal, then I could try to implement it myself based on my previous Clojure implementation, and send you a PR. Though I'm not sure when I'll manage to find some time to do it.
Happy to review a PR!
Attached my PR with proposed implementation and usage example.
Code is out of date. Needs to be updated before considered @lbeschastny
@thebigredgeek rebased my branch onto the latest master.
Hi! Thank you for your job! This feature is great. I would be glad to use this in my project.
This is a very helpful feature and wondering if this could actually be made available officially via this package.
Any update on this? Any help required?