Wednesday, 24 May 2017

Check progress and status of a download with Node

I am downloading a file using Node.js with an http.get request and would like to:

1) During the download, check how much of the download has completed so far (percentage wise or any other indicator)

2)W hen the download has finished, check if the file was completely/properly downloaded (If for example I downloaded a json, make sure that is complete so that I do not try and parse a broken object).

Any way to do these things?

Thank you very much



via Nivolas

No comments:

Post a Comment