🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

node-fetch-progress

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-fetch-progress

Get updates on download progress using `fetch`.

1.0.2
latest
Source
npm
Version published
Weekly downloads
4.8K
-10.55%
Maintainers
1
Weekly downloads
 
Created
Source

node-fetch-progress

Get updates on download progress using fetch.

Install

Using yarn

yarn add node-fetch-progress

Using npm

npm install node-fetch-progress --save

Usage

const response = await fetch(link)
const progress = new Progress(response, { throttle: 100 })
progress.on('progress', (p) => {
  console.log(
    p.total,
    p.done,
    p.totalh,
    p.doneh,
    p.startedAt,
    p.elapsed,
    p.rate,
    p.rateh,
    p.estimated,
    p.progress,
    p.eta,
    p.etah,
    p.etaDate
  )
})

Keywords

fetch

FAQs

Package last updated on 19 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts