{"_id":"@ndelangen/get-tarball","_rev":"3481862","name":"@ndelangen/get-tarball","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","dist-tags":{"canary":"3.0.7--canary.49a7f05.0","latest":"3.0.9"},"maintainers":[{"name":"ndelangen","email":""}],"time":{"modified":"2024-08-27T19:47:52.000Z","created":"2023-02-22T12:01:21.548Z","3.0.9":"2023-05-26T14:58:30.421Z","3.0.8":"2023-05-26T14:56:20.086Z","3.0.7":"2023-03-02T09:26:18.292Z","3.0.7--canary.49a7f05.0":"2023-03-02T09:24:51.744Z","3.0.6":"2023-03-02T09:07:08.413Z","3.0.5":"2023-03-02T08:58:18.018Z","3.0.4":"2023-03-02T08:44:13.873Z","3.0.3":"2023-02-22T12:01:21.548Z"},"users":{},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"versions":{"3.0.9":{"name":"@ndelangen/get-tarball","version":"3.0.9","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","got":"^12.5.3","typescript":"^4.9.5"},"dependencies":{"gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"e89051ab042726f41ee8ca33d31340004f281356","_id":"@ndelangen/get-tarball@3.0.9","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"727ff4454e65f34707e742a59e5e6b1f525d8964","size":123224,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.9.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.9_1685113110322_0.6209399523291064"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-26T14:58:30.421Z","publish_time":1685113110421,"_source_registry_name":"default","_cnpm_publish_time":1685113110421},"3.0.8":{"name":"@ndelangen/get-tarball","version":"3.0.8","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","got":"^12.5.3","typescript":"^4.9.5"},"dependencies":{"gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"ce101126a702c96f1f5155f3c2bb1ca99196a0d1","_id":"@ndelangen/get-tarball@3.0.8","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"78c7fc6a67156e9e6be439787e943b68d8e6f0cc","size":123250,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.8.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.8_1685112979860_0.743231376483835"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-26T14:56:20.086Z","publish_time":1685112980086,"_source_registry_name":"default","_cnpm_publish_time":1685112980086},"3.0.7":{"name":"@ndelangen/get-tarball","version":"3.0.7","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","got":"^12.5.3","typescript":"^4.9.5"},"dependencies":{"gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"d0e5dca6f142703c6e5d34335ef6ae6e2ce9c30d","_id":"@ndelangen/get-tarball@3.0.7","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"87c7aef2df4ff4fbdbab6ac9ed32cee142c4b1a3","size":123641,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.7.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.7_1677749177962_0.841955165811132"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-02T09:26:18.292Z","publish_time":1677749178292,"_cnpm_publish_time":1677749178292},"3.0.7--canary.49a7f05.0":{"name":"@ndelangen/get-tarball","version":"3.0.7--canary.49a7f05.0","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","got":"^12.5.3","typescript":"^4.9.5"},"dependencies":{"gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"readmeFilename":"readme.md","gitHead":"49a7f0567164fda11a9998c0813af9d4cc7d5a98","_id":"@ndelangen/get-tarball@3.0.7--canary.49a7f05.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"4b28283c3169960be720e84d19e26d396da59039","size":123397,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.7--canary.49a7f05.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.7--canary.49a7f05.0.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.7--canary.49a7f05.0_1677749091607_0.1859533189417628"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-02T09:24:51.744Z","publish_time":1677749091744,"_cnpm_publish_time":1677749091744},"3.0.6":{"name":"@ndelangen/get-tarball","version":"3.0.6","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","typescript":"^4.9.5"},"dependencies":{"got":"^12.5.3","gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"5c2498222522df7793f811c3168778fca691251f","_id":"@ndelangen/get-tarball@3.0.6","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"786efafe37742f28971e76c3597418fdff1b377a","size":4760,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.6.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.6_1677748028261_0.36807532010513233"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-02T09:07:08.413Z","publish_time":1677748028413,"_cnpm_publish_time":1677748028413},"3.0.5":{"name":"@ndelangen/get-tarball","version":"3.0.5","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","typescript":"^4.9.5"},"dependencies":{"got":"^12.5.3","gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"42be99aca1b4777328ae1ae260a036245c1fc03b","_id":"@ndelangen/get-tarball@3.0.5","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"fd5b802460a10388f430cb153e474565ae7e0404","size":4760,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.5.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.5_1677747497868_0.3669237990111829"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-02T08:58:18.018Z","publish_time":1677747498018,"_cnpm_publish_time":1677747498018},"3.0.4":{"name":"@ndelangen/get-tarball","version":"3.0.4","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","auto":"^10.42.1","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","typescript":"^4.9.5"},"dependencies":{"got":"^12.5.3","gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"3a2343ab17b88489ce94b172f1d162610365bab2","_id":"@ndelangen/get-tarball@3.0.4","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"shasum":"048fec0be1363f360343e40a057ff9da68962aab","size":4748,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.4.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.4_1677746653738_0.7353983237351243"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-02T08:44:13.873Z","publish_time":1677746653873,"_cnpm_publish_time":1677746653873},"3.0.3":{"name":"@ndelangen/get-tarball","version":"3.0.3","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe srcraries.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"release":"auto shipit","test":"jest","build":"tsup ./src/index.ts --clean --dts --format cjs,esm --target node16 --external tar-fs,gunzip-maybe,pump","watch":"yarn build -- --watch","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"homepage":"https://github.com/ndelangen/download-tarball#readme","devDependencies":{"@types/gunzip-maybe":"^1.4.0","@types/jest":"^29.4.0","@types/node":"^16.0.0","@types/pump":"^1.1.1","@types/tar-fs":"^2.0.1","got":"^12.5.3","http-test-server":"^2.0.1","jest":"^29.4.3","package-json-to-readme":"^2.1.1","tar-stream":"^3.0.0","tmp":"^0.2.1","ts-jest":"^29.0.5","tsup":"^6.6.3","typescript":"^4.9.5"},"dependencies":{"auto":"^10.42.1","gunzip-maybe":"^1.4.2","pump":"^3.0.0","tar-fs":"^2.1.1"},"publishConfig":{"access":"public"},"auto":{"plugins":["npm"]},"gitHead":"0b48978540f63234bcd41688c8d17c9b988c3ee8","_id":"@ndelangen/get-tarball@3.0.3","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"shasum":"bb29372e6666a9f01b12c219ed1053866c01afad","size":123380,"noattachment":false,"key":"/@ndelangen/get-tarball/-/@ndelangen/get-tarball-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ndelangen/get-tarball/download/@ndelangen/get-tarball-3.0.3.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-tarball_3.0.3_1677067281378_0.8212501803926788"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-22T12:01:21.548Z","publish_time":1677067281548,"_cnpm_publish_time":1677067281548}},"readme":"# download-tarball\n\nDownload a tarball (optionally gzipped) to a folder &amp; extract it in the process. Uses the wonderful &amp; super quick tar-fs &amp; gunzip-maybe srcraries.\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/) module available through the \n[npm registry](https://www.npmjs.com/). It can be installed using the \n[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)\nor \n[`yarn`](https://yarnpkg.com/en/)\ncommand line tools.\n\n```sh\nnpm install download-tarball --save\n```\n\n## Usage\n\n```js\n/* eslint-disable import/no-extraneous-dependencies */\n\nimport download from 'download-tarball';\n\ndownload({\n  url: 'http://link-to-tarball/file.tar.gz',\n  dir: '/dir/where/file/will/be/downloaded'\n}).then(() => {\n  console.log('file is now downloaded!');\n}).catch(err => {\n  console.log('oh crap the file could not be downloaded properly');\n  console.log(err);\n});\n\ndownload({\n  url: 'http://link-to-tarball/file.tar.gz',\n  dir: '/dir/where/file/will/be/downloaded',\n  // custom options that will be forwarded to got.stream(..., opts) can also be set\n  gotOpts: {\n    headers: {\n      beep: 'boop'\n    }\n  }\n}).then(() => {\n  console.log('file is now downloaded!');\n}).catch(err => {\n  console.log('oh crap the file could not be downloaded properly');\n  console.log(err);\n});\n\ndownload({\n  // neat, tar files works as well!\n  url: 'http://link-to-tarball/file.tar',\n  dir: '/dir/where/file/will/be/downloaded'\n}).then(() => {\n  console.log('file is now downloaded!');\n}).catch(err => {\n  console.log('oh crap the file could not be downloaded properly');\n  console.log(err);\n});\n\n```\n\n## Tests\n\n```sh\nnpm install\nnpm test\n```\n\n## Dependencies\n\n- [gunzip-maybe](https://github.com/mafintosh/gunzip-maybe): Transform stream that gunzips its input if it is gzipped and just echoes it if not\n- [pump](https://github.com/mafintosh/pump): pipe streams together and close all of them if one of them closes\n- [tar-fs](https://github.com/mafintosh/tar-fs): filesystem bindings for tar-stream\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/ndelangen/download-tarball#readme","bugs":{"url":"https://github.com/ndelangen/download-tarball/issues"},"license":"MIT"}