Instantly share code, notes, and snippets.

What would you like to do?
const progressHelper = require('./progressHelper.js')
progressHelper(handler({ loaded = Kb, total = 0-100% })) // => returns a function for the response _stream_
// use returned function on the `response` before doing `response.json()` etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment