twolfson / grunt-curl

Download files from the internet via grunt.
The Unlicense
73 stars 28 forks source link

Progress feedback in output #33

Open dominikwilkowski opened 9 years ago

dominikwilkowski commented 9 years ago

I assume there is no way you can output some feedback as to how much has been downloaded so far. I am handling ~100MB files and it's hard to stare at a blank screen for that long :)

Something like:

[======                                  ] 30% done

would be awesome.

twolfson commented 9 years ago

This should be possible. I would imagine people to opt in via something like progress: true. I am going to mark this issue with a "help wanted" as I have other higher priority items in my queue =/

If you are interesting taking it on, I suggest taking a library which takes request, extracts the Content-Length response header, and calculates the progress as new chunks come in:

https://github.com/freeall/progress-stream

https://github.com/IndigoUnited/node-request-progress