{"_id":"download-tarball","_rev":"9-6399d40fa6e93972f41e603c9afb17d5","name":"download-tarball","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"download-tarball","version":"1.0.0","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.","main":"dist/index.js","scripts":{"test":"babel-tape-runner test.js && semistandard | snazzy","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"homepage":"https://github.com/kesla/download-tarball#readme","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","babel-tape-runner":"^2.0.1","package-json-to-readme":"^1.5.1","semistandard":"^8.0.0","snazzy":"^4.0.0","tapava":"^2.2.0","tar-stream":"^1.5.2","then-fs":"^2.0.0","tmp":"0.0.28"},"dependencies":{"bluebird":"^3.4.1","end-of-stream":"^1.1.0","got":"^6.3.0","gunzip-maybe":"^1.3.1","tar-fs":"^1.13.0"},"gitHead":"c57fb3934cde5e94e0e00924204d5e27e84e478f","_id":"download-tarball@1.0.0","_shasum":"74d81a82584062d70bb5cd8f61844d329e621ad7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"74d81a82584062d70bb5cd8f61844d329e621ad7","tarball":"https://registry.npmjs.org/download-tarball/-/download-tarball-1.0.0.tgz","integrity":"sha512-u7j4cLuucCFLGLiWoWYUQO8lu46xoxe4tJFoESi7e16XHpDLYvCdF41qa2EnEWObTBJE1RVYVmdZfMcEXCqpow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtSYMpdt6RUd98M0jmG72BSIfcILz0X9iao/GEMFL9HAiBXSdfSiXSlKFD84yExuPdUsNpDSZw5OAALIX9iavJfzg=="}]},"maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/download-tarball-1.0.0.tgz_1468433700646_0.21139881038106978"},"directories":{}},"1.0.1":{"name":"download-tarball","version":"1.0.1","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.","main":"dist/index.js","scripts":{"test":"babel-tape-runner test.js && semistandard | snazzy","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"homepage":"https://github.com/kesla/download-tarball#readme","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","babel-tape-runner":"^2.0.1","package-json-to-readme":"^1.5.1","semistandard":"^8.0.0","snazzy":"^4.0.0","tapava":"^2.2.0","tar-stream":"^1.5.2","then-fs":"^2.0.0","tmp":"0.0.28"},"dependencies":{"bluebird":"^3.4.1","got":"^6.3.0","gunzip-maybe":"^1.3.1","pump":"^1.0.1","tar-fs":"^1.13.0"},"gitHead":"08d6ddbf5a195a748293ea93505bc54decd43586","_id":"download-tarball@1.0.1","_shasum":"0b217ff8e535c3e47e7c3d6a5da9e6c808c3dc29","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"0b217ff8e535c3e47e7c3d6a5da9e6c808c3dc29","tarball":"https://registry.npmjs.org/download-tarball/-/download-tarball-1.0.1.tgz","integrity":"sha512-EBzLbn565p7l0ETyh8EXBAfuffnGJ6/1XHHs4eFnam8Vj7JUPrh1M36X03vRMEaWMmhPgD0P2MdtgJbMoI/FLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz052MqGtxo48WjZO/ACFPTuWKxejcG49PMK8s4p1kjgIgMwCm0aX5eOZXqMB3Y1f+pH64A7gJ2sZgik8vOVwEB7k="}]},"maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/download-tarball-1.0.1.tgz_1468450406088_0.7138605583459139"},"directories":{}},"1.0.2":{"name":"download-tarball","version":"1.0.2","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.","main":"dist/index.js","scripts":{"test":"xo && babel-tape-runner test.js","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"homepage":"https://github.com/kesla/download-tarball#readme","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","babel-tape-runner":"^2.0.1","http-test-server":"^1.0.0","package-json-to-readme":"^1.5.1","tapava":"^2.2.0","tar-stream":"^1.5.2","then-fs":"^2.0.0","tmp":"0.0.28","xo":"^0.16.0"},"dependencies":{"bluebird":"^3.4.1","got":"^6.3.0","gunzip-maybe":"^1.3.1","http-https-agent":"^1.0.2","object-assign":"^4.1.0","pump":"^1.0.1","tar-fs":"^1.13.0"},"xo":{"esnext":true,"space":true},"gitHead":"39beb64f2f97ea3d6dd709d456d5d29c2ee248a5","_id":"download-tarball@1.0.2","_shasum":"c7374a64baeea1f174bdc354aef93109cc30eae9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"c7374a64baeea1f174bdc354aef93109cc30eae9","tarball":"https://registry.npmjs.org/download-tarball/-/download-tarball-1.0.2.tgz","integrity":"sha512-4R3HwVklYEe7ARuPrR9GB81yocZzLcuXWc8CNYDAKwVwONZ065Z2iS4Pt5atjv8U/QajgmHoef4r8WBVYz+s4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9bQz3AgCjELcIuGODrxV/b9WYj3/iHrilbcJIDRG4WAiEAybjIubBNUpiXBN5hAg77um95PPYmSjtrey3z9aJM6Z8="}]},"maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/download-tarball-1.0.2.tgz_1468538867593_0.3443542930763215"},"directories":{}},"1.0.3":{"name":"download-tarball","version":"1.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 libraries.","main":"dist/index.js","scripts":{"test":"xo && babel-tape-runner test.js","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"homepage":"https://github.com/kesla/download-tarball#readme","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","babel-tape-runner":"^2.0.1","http-test-server":"^1.0.0","package-json-to-readme":"^1.5.1","tapava":"^2.2.0","tar-stream":"^1.5.2","then-fs":"^2.0.0","tmp":"0.0.28","xo":"^0.16.0"},"dependencies":{"got":"^6.3.0","gunzip-maybe":"^1.3.1","http-https-agent":"^1.0.2","object-assign":"^4.1.0","promisify-function":"^1.3.2","pump":"^1.0.1","tar-fs":"^1.13.0"},"xo":{"esnext":true,"space":true},"gitHead":"788fa4ed88d5f9a900cf4ec8ec19cd8ba0c916f0","_id":"download-tarball@1.0.3","_shasum":"7bee6622780481eb72de097092fd19002ef31f32","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"7bee6622780481eb72de097092fd19002ef31f32","tarball":"https://registry.npmjs.org/download-tarball/-/download-tarball-1.0.3.tgz","integrity":"sha512-X2G0+MrvAiZ3i5qzMI6rsXXoa0huDj+NFbf/ixOxQ+jwGR/ecCyJ+88s6VhaVNl7flOQnlRn2yEuZHO7HxobxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCi9WAa9EgoN0ZEGbaQw8kDvITV6RSCJ760P7mDStnOkgIgXf4ykWHXlVHHUYwkm2pmygACVrvq89R52iLMp815Qmg="}]},"maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/download-tarball-1.0.3.tgz_1468664600656_0.7612580431159586"},"directories":{}},"1.1.0":{"name":"download-tarball","version":"1.1.0","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.","main":"dist/index.js","scripts":{"test":"xo && babel-tape-runner test.js","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"homepage":"https://github.com/kesla/download-tarball#readme","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","babel-tape-runner":"^2.0.1","http-test-server":"^1.0.0","package-json-to-readme":"^1.5.1","tapava":"^2.2.0","tar-stream":"^1.5.2","then-fs":"^2.0.0","tmp":"0.0.29","xo":"^0.16.0"},"dependencies":{"got":"^6.3.0","gunzip-maybe":"^1.3.1","http-https-agent":"^1.0.2","object-assign":"^4.1.0","promisify-function":"^1.3.2","pump":"^1.0.1","tar-fs":"^1.13.0"},"xo":{"esnext":true,"space":true},"gitHead":"2dd640942a93dc2ac1db778f35402173e3c7344a","_id":"download-tarball@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"integrity":"sha512-nQUzhiejjochmNpbjx055yiYuObGMPOz4Vv2laKpRS3bmLfeqZ3vph08PA+e3oUZTBvW7bff2Vs9TDLlT31tmw==","shasum":"2ac42353158b41f66d42c79a4fd8fcac42c90547","tarball":"https://registry.npmjs.org/download-tarball/-/download-tarball-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+1G13qdC8KZo/5bUnw0T9agTo7sszmhsyciJ8zt24vwIhAOi1s+XHvpaPOJ0jDl/J8jAyxxQLmAschtpdWIyTN7ey"}]},"maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-tarball-1.1.0.tgz_1504745090962_0.9459592921193689"},"directories":{}},"2.0.0":{"name":"download-tarball","version":"2.0.0","description":"Download a tarball (optionally gzipped) to a folder & extract it in the process. Uses the wonderful & super quick tar-fs & gunzip-maybe libraries.","main":"dist/index.js","scripts":{"test":"xo && babel-tape-runner test.js","build":"rm -rf dist && mkdir -p dist && babel lib --out-dir dist","watch":"rm -rf dist && mkdir -p dist && babel -w lib --out-dir dist","prepublish":"npm run build","posttest":"readme package.json > readme.md"},"repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"homepage":"https://github.com/kesla/download-tarball#readme","devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","babel-tape-runner":"^2.0.1","http-test-server":"^1.0.0","package-json-to-readme":"^1.5.1","tapava":"^2.2.0","tar-stream":"^1.5.2","then-fs":"^2.0.0","tmp":"0.0.29","xo":"^0.16.0"},"dependencies":{"got":"^8.3.2","gunzip-maybe":"^1.3.1","object-assign":"^4.1.0","promisify-function":"^1.3.2","pump":"^1.0.1","tar-fs":"^1.13.0"},"xo":{"esnext":true,"space":true},"gitHead":"d84f1afe542c7d2fcf8181657e0fe6754c6ad3f2","_id":"download-tarball@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"integrity":"sha512-Wo7hQFcmwi/GdngZYE80EpMY4yEKfTLX5aS8Oo6AFHwFwv+Y3gBD5RglzMwkIal0yaGnS/kxGXKFWVNDSH/upg==","shasum":"50cbbc7d819695dea66345086396f39c2ced1422","tarball":"https://registry.npmjs.org/download-tarball/-/download-tarball-2.0.0.tgz","fileCount":9,"unpackedSize":10168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0LMgCRA9TVsSAnZWagAAwgkQAJnsB+ARALa07xXTVtPy\naAymR5z98NRBSn+pnIMPGZ3PXsATThCf/mNSJaAQ5L8ydrCFqR61XO7OdbSM\nVLicA7834UU3Jr53mFtG/DF3EoTkMVnCrvww2V4hrfv6Xr+mtWN7j/gx68qo\nVd3hCFSOMlFcrDrBhfffU4bQxhKQzn9G/RvbQyn9a024+ZpzhgiZot+Mc5ix\nCa2eskjBV1GaDY8Tn6rLQYJDk1bgcHvdXipPxrDgRDOtA/N689C5C9q4ux/p\nkX1IAywc2FdprIwqwWx9S0l4V0cwoQtN+O363vJH/8BVFwrh+zKAvtWpG6mm\nd1hv64A6pGHB/aJaTEpqDwuahHSIclNsxvrhQvNvid1FTCvnF+7L8PYu3ukm\n7KAS+LfiFDvC2rqrvu6kCylNrmJ1miFiZ7UUGLlQQPfLxGarmfkig0bEpV5g\ncWfzjt8cY113YShHFzVHO3SzSRo8A6eBtMQ2TqW8W7E8t1tnT+oDSroaaJNM\nGRBAiUlQemkZqsYzwawHftCMn8U3Kz0mly7lWQShk/ksLHY9r10KB5fuZytN\nSHJ5fnl5giXQolFCk+Hto9C3s+eNjy7tz0AGVRo4J5NurlEmdCv21lOP6nNi\nqxWai6FKXc697tCuq8ATRRgbt/iO+Jj8dHT6QV/HjQOqPT44k7A9v8KQjnwJ\n/oYC\r\n=HoTf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkgRIROjjRZ6OdDZlDXyFL+umsx2ZTACFnL/N4y+p63gIhAKGEDzRggof1ikNyh80yx9xMWNW5XJ4UcFyqkqv0hp1k"}]},"maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-tarball_2.0.0_1540403999640_0.518938056509185"},"_hasShrinkwrap":false}},"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 libraries.\n\n## Installation\n\nDownload node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.\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- [got](https://github.com/sindresorhus/got): Simplified HTTP requests\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- [object-assign](https://github.com/sindresorhus/object-assign): ES2015 `Object.assign()` ponyfill\n- [promisify-function](https://github.com/jcollado/promisify-function): Turn a callback-style function into a function that returns a promise\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## Dev Dependencies\n\n- [babel-cli](https://github.com/babel/babel/tree/master/packages): Babel command line.\n- [babel-core](https://github.com/babel/babel/tree/master/packages): Babel compiler core.\n- [babel-preset-es2015](https://github.com/babel/babel/tree/master/packages): Babel preset for all es2015 plugins.\n- [babel-tape-runner](https://github.com/wavded/babel-tape-runner): Babel + Tape for running your ES Next tests\n- [http-test-server](https://github.com/kesla/test-http-server): Create a simple http server for tests\n- [package-json-to-readme](https://github.com/zeke/package-json-to-readme): Generate a README.md from package.json contents\n- [tapava](https://github.com/kesla/tapava): the syntax of ava, run through tape\n- [tar-stream](https://github.com/mafintosh/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.\n- [then-fs](https://github.com/then/fs): promised FS\n- [tmp](https://github.com/raszi/node-tmp): Temporary file and directory creator\n- [xo](https://github.com/sindresorhus/xo): JavaScript happiness style linter ❤️\n\n\n## License\n\nMIT\n\n_Generated by [package-json-to-readme](https://github.com/zeke/package-json-to-readme)_\n","maintainers":[{"name":"kesla","email":"david.bjorklund@gmail.com"}],"time":{"modified":"2022-06-15T23:02:47.080Z","created":"2016-07-13T18:15:03.108Z","1.0.0":"2016-07-13T18:15:03.108Z","1.0.1":"2016-07-13T22:53:28.891Z","1.0.2":"2016-07-14T23:27:50.138Z","1.0.3":"2016-07-16T10:23:25.416Z","1.1.0":"2017-09-07T00:44:51.046Z","2.0.0":"2018-10-24T17:59:59.759Z"},"homepage":"https://github.com/kesla/download-tarball#readme","repository":{"type":"git","url":"git+https://github.com/kesla/download-tarball.git"},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"bugs":{"url":"https://github.com/kesla/download-tarball/issues"},"license":"MIT","readmeFilename":"readme.md"}