kevva / download

Download and extract files
MIT License
1.28k stars 200 forks source link

Feature - progress event #75

Closed facultymatt closed 8 years ago

facultymatt commented 9 years ago

It would be useful to have a callback or event emit on download progress. Ideally as percent of total if content-length is provided by source.

Jielde commented 9 years ago

+1

floatdrop commented 9 years ago

@facultymatt @Jielde you can implement it as a plugin (download-progess for example) that will emit these events on stream. Look at https://github.com/kevva/download-status as example.

kevva commented 8 years ago

I'm returning the whole stream now so you can listen on the data event on the response.