Installations
npm install download-tarball
Score
49.3
Supply Chain
93.1
Quality
71.9
Maintenance
50
Vulnerability
100
License
Releases
Unable to fetch releases
Developer
kesla
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
10.11.0
NPM Version
6.4.1
Statistics
7 Stars
20 Commits
6 Forks
2 Watching
2 Branches
4 Contributors
Updated on 02 Jun 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
1,402,849
Last day
-16.3%
1,351
Compared to previous day
Last week
-35.6%
8,842
Compared to previous week
Last month
3.6%
48,246
Compared to previous month
Last year
-18.6%
478,090
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
download-tarball
Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.
Installation
Download node at nodejs.org and install it, if you haven't already.
1npm install download-tarball --save
Usage
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
Tests
1npm install 2npm test
Dependencies
- got: Simplified HTTP requests
- gunzip-maybe: Transform stream that gunzips its input if it is gzipped and just echoes it if not
- object-assign: ES2015
Object.assign()
ponyfill - promisify-function: Turn a callback-style function into a function that returns a promise
- pump: pipe streams together and close all of them if one of them closes
- tar-fs: filesystem bindings for tar-stream
Dev Dependencies
- babel-cli: Babel command line.
- babel-core: Babel compiler core.
- babel-preset-es2015: Babel preset for all es2015 plugins.
- babel-tape-runner: Babel + Tape for running your ES Next tests
- http-test-server: Create a simple http server for tests
- package-json-to-readme: Generate a README.md from package.json contents
- tapava: the syntax of ava, run through tape
- tar-stream: tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.
- then-fs: promised FS
- tmp: Temporary file and directory creator
- xo: JavaScript happiness style linter ❤️
License
MIT
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
- Info: project has a license file: license:0
- Warn: project license file does not contain an FSF or OSI license.
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
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 6 are checked with a SAST tool
Score
3.1
/10
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