
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
partial-load
Advanced tools
Download part of a file.
$ yarn add partial-load
# Or,
$ npm install partial-load --save
const partialDownload = require('partial-load')
const url = 'https://www.w3schools.com/html/mov_bbb.webm'
const megabyte = 1024 * 1024
// stop loading once 1MB has been exceeded
partialDownload(url, './output/file.webm', megabyte)
.then((bytes) => console.log('Downloaded ', bytes, ' bytes!'))
Returns of a Promise which resolves to the number of loaded bytes.
Type: String
The url of the file.
Type: String
The file path of the output, assumes directory exists.
Type: Number
The byte limit threshold; the load will stop once the byte limit has been exceeded.
FAQs
Download part of a file
The npm package partial-load receives a total of 0 weekly downloads. As such, partial-load popularity was classified as not popular.
We found that partial-load demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.