Gathering detailed insights and metrics for download
Gathering detailed insights and metrics for download
Gathering detailed insights and metrics for download
Gathering detailed insights and metrics for download
npm install download
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
1,285 Stars
278 Commits
201 Forks
20 Watching
3 Branches
26 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0.3%
364,772
Compared to previous day
Last week
0.6%
2,088,294
Compared to previous week
Last month
6.9%
8,753,602
Compared to previous month
Last year
-18.3%
102,992,121
Compared to previous year
Download and extract files
See download-cli for the command-line version.
$ npm install download
1const fs = require('fs'); 2const download = require('download'); 3 4(async () => { 5 await download('http://unicorn.com/foo.jpg', 'dist'); 6 7 fs.writeFileSync('dist/foo.jpg', await download('http://unicorn.com/foo.jpg')); 8 9 download('unicorn.com/foo.jpg').pipe(fs.createWriteStream('dist/foo.jpg')); 10 11 await Promise.all([ 12 'unicorn.com/foo.jpg', 13 'cats.com/dancing.gif' 14 ].map(url => download(url, 'dist'))); 15})();
To work with proxies, read the got documentation
.
Returns both a Promise<Buffer>
and a Duplex stream with additional events.
Type: string
URL to download.
Type: string
Path to where your file will be written.
Type: Object
Same options as got
and decompress
in addition to the ones below.
Type: boolean
Default: false
If set to true
, try extracting the file using decompress
.
Type: string
Name of the saved file.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 8/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More