
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
zip-downloader
Advanced tools
This can be used to download multiple files bundled into one or more zip files
Zip-downloader can be used to download multiple files bundled into one or more zip files.
You can give zip-downloader an array of assets to download and it can download them internally and bundle them in zip(s) and download the final zip(s).
Test it out here: http://bit.ly/zip-downloader
downloadFileName (String) - Name of the zipped file downloaded.
Default: zipped_files
maxZIPSize (Integer) - Maximum size of the zip file downloaded. If total downloaded file size increases this, it will be split into multiple zips.
Default: 2000000000 (2GB). The maximum possible value for maxZIPSize is 2GB as of now.
downloadBigFiles (Boolean) - If false, files greater than maxZIPSize are not downloaded. If true, those files are downloaded separately.
Default: true
statusCallback (Function) - This function is called whenever the download status changes for any file being downloaded. It can be used to update the download status. It is passed the count of downloaded assets till that moment.
onComplete (Function) - This is called on completion of the download. When it is called, it is passed a summary object of the download. That object contains -
import downloader from 'zip-downloader';
var assets = [
{
src, //src of the asset (image, video, pdf, anything)
name, // name of the downloaded file for this asset (optional)
}
];
var options = {
downloadFileName: 'zipped',
statusCallback: function(downloadedTillNow){
console.log('Download status:' + ((downloadedTillNow * 100)/assets.length));
},
onComplete = function(downloadedSummary){
console.log('Assets downloaded:' + downloadedSummary.numberOfDownloadedAssets);
console.log('Assets failed:' + downloadedSummary.numberOfFailedAssets);
console.log('Large Assets downloaded(over maxZIPSize):' + downloadedSummary.numberOfLargeUnZippedAssets);
console.log('Number of zip files downloaded:' + downloadedSummary.numberOfDownloadedZIPFiles);
console.log('Array of failed assets:');
console.log(downloadedSummary.failedAssetList);
},
};
downloader(assets, options);
Using this we can only download zip files of maximum 2GB. This is a limitation as of now. But we can work towards fixing it.
FAQs
This can be used to download multiple files bundled into one or more zip files
The npm package zip-downloader receives a total of 9 weekly downloads. As such, zip-downloader popularity was classified as not popular.
We found that zip-downloader 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.