Get progress updates for your XMLHttpRequests where supported.
Returns an EventEmitter
that emits progress events for the
XMLHttpRequest passed into the first
progress.on('data', handler(amount, total))
Emitted for each progress update.
amount is a number between 0 and 1
representing how much of the request has been completed.
total is the
total size of the request.
If progress events are not available,
total will default to
and this event will be emitted once the request is complete with an
amount of 1.
Called when the request is complete.
MIT. See LICENSE.md for details.