Node.js library that wraps a fetch Response object to emit download progress events, including bytes done, total, transfer rate, ETA, and human-readable sizes. Version 1.0.2, stable, no longer actively maintained. Key differentiator: simple wrapper around fetch with throttle control, minimal dependencies.
npm install node-fetch-progressNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates downloading a file and logging progress every 100ms.
Ensure the fetch URL points to a resource with a Content-Length header and supports streaming.
Set throttle to a lower value like 100 for smoother progress events.
Listen for 'end' or 'error' events as well.
Ensure fetch returns a response with a body property. Use node-fetch or native fetch in Node 18+.
Use default import: import Progress from 'node-fetch-progress'