Gathering detailed insights and metrics for download-tarball
Gathering detailed insights and metrics for download-tarball
Gathering detailed insights and metrics for download-tarball
Gathering detailed insights and metrics for download-tarball
npm install download-tarball
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7 Stars
20 Commits
6 Forks
2 Watching
2 Branches
4 Contributors
Updated on 02 Jun 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
9.2%
1,705
Compared to previous day
Last week
-34.4%
9,105
Compared to previous week
Last month
6.4%
48,521
Compared to previous month
Last year
-18.6%
477,767
Compared to previous year
Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.
Download node at nodejs.org and install it, if you haven't already.
1npm install download-tarball --save
1/* eslint-disable import/no-extraneous-dependencies */ 2 3import download from 'download-tarball'; 4 5download({ 6 url: 'http://link-to-tarball/file.tar.gz', 7 dir: '/dir/where/file/will/be/downloaded' 8}).then(() => { 9 console.log('file is now downloaded!'); 10}).catch(err => { 11 console.log('oh crap the file could not be downloaded properly'); 12 console.log(err); 13}); 14 15download({ 16 url: 'http://link-to-tarball/file.tar.gz', 17 dir: '/dir/where/file/will/be/downloaded', 18 // custom options that will be forwarded to got.stream(..., opts) can also be set 19 gotOpts: { 20 headers: { 21 beep: 'boop' 22 } 23 } 24}).then(() => { 25 console.log('file is now downloaded!'); 26}).catch(err => { 27 console.log('oh crap the file could not be downloaded properly'); 28 console.log(err); 29}); 30 31download({ 32 // neat, tar files works as well! 33 url: 'http://link-to-tarball/file.tar', 34 dir: '/dir/where/file/will/be/downloaded' 35}).then(() => { 36 console.log('file is now downloaded!'); 37}).catch(err => { 38 console.log('oh crap the file could not be downloaded properly'); 39 console.log(err); 40}); 41
1npm install 2npm test
Object.assign()
ponyfillMIT
Generated by package-json-to-readme
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/17 approved changesets -- score normalized to 1
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
project is not fuzzed
Details
Reason
security policy file not detected
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-25
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