{"_id":"download-github-release","_rev":"4244957","name":"download-github-release","description":"A node module to download Github release assets. It will also uncompress zip files.","dist-tags":{"latest":"0.3.2"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"time":{"modified":"2026-03-29T21:29:04.000Z","created":"2016-07-31T12:30:08.865Z","0.3.2":"2017-10-26T09:14:35.852Z","0.3.1":"2017-10-02T08:46:50.758Z","0.3.0":"2017-09-21T22:30:28.790Z","0.2.0":"2017-06-28T13:19:34.760Z","0.1.3":"2016-07-31T15:22:09.045Z","0.1.2":"2016-07-31T12:30:08.865Z"},"users":{},"author":{"name":"Stephan Florquin"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"versions":{"0.3.2":{"name":"download-github-release","version":"0.3.2","description":"A node module to download Github release assets. It will also uncompress zip files.","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive --require babel-polyfill --require should","test:cov":"babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require should --require should","lint":"eslint src test","check":"npm run lint && npm run test","build:lib":"babel src --out-dir lib","clean":"rimraf lib coverage","preversion":"npm run clean && npm run check","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib"},"bin":{"download-github-release":"bin/download-github-release"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"keywords":["github","release","download"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"dependencies":{"commander":"^2.9.0","extract-zip":"^1.5.0","gauge":"^2.6.0","multi-progress":"^2.0.0","superagent":"^3.8.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-eslint":"^6.1.2","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.11.1","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","isparta":"^4.0.0","mocha":"^2.4.5","nock":"^8.0.0","rimraf":"^2.5.3","should":"^8.2.2","sinon":"^1.17.5","stream-buffers":"^3.0.0","tmp":"0.0.28"},"gitHead":"5c3ed72d14a7c1a2d47f47112cdaf26e9ee4277e","homepage":"https://github.com/stephan83/download-github-release#readme","_id":"download-github-release@0.3.2","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"4c12b73da8d245b3114c9f600391f4f8d734eb91","size":5313,"noattachment":false,"key":"/download-github-release/-/download-github-release-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/download-github-release/download/download-github-release-0.3.2.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-github-release-0.3.2.tgz_1509009274901_0.9426645725034177"},"directories":{},"publish_time":1509009275852,"_hasShrinkwrap":false,"_cnpm_publish_time":1509009275852,"_cnpmcore_publish_time":"2021-12-17T02:26:52.924Z"},"0.3.1":{"name":"download-github-release","version":"0.3.1","description":"A node module to download Github release assets. It will also uncompress zip files.","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive --require babel-polyfill --require should","test:cov":"babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require should --require should","lint":"eslint src test","check":"npm run lint && npm run test","build:lib":"babel src --out-dir lib","clean":"rimraf lib coverage","preversion":"npm run clean && npm run check","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib"},"bin":{"download-github-release":"bin/download-github-release"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"keywords":["github","release","download"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"dependencies":{"commander":"^2.9.0","extract-zip":"^1.5.0","gauge":"^2.6.0","multi-progress":"^2.0.0","superagent":"^3.6.2"},"devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-eslint":"^6.1.2","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.11.1","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","isparta":"^4.0.0","mocha":"^2.4.5","nock":"^8.0.0","rimraf":"^2.5.3","should":"^8.2.2","sinon":"^1.17.5","stream-buffers":"^3.0.0","tmp":"0.0.28"},"gitHead":"3cc386aa8f23cfb2df64f8021767b18a6550fb51","homepage":"https://github.com/stephan83/download-github-release#readme","_id":"download-github-release@0.3.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"83b57a315536bd7d78470ade1c63dc7890ab16a6","size":5046,"noattachment":false,"key":"/download-github-release/-/download-github-release-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/download-github-release/download/download-github-release-0.3.1.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-github-release-0.3.1.tgz_1506934009794_0.08592342608608305"},"directories":{},"publish_time":1506934010758,"_hasShrinkwrap":false,"_cnpm_publish_time":1506934010758,"_cnpmcore_publish_time":"2021-12-17T02:26:53.155Z"},"0.3.0":{"name":"download-github-release","version":"0.3.0","description":"A node module to download Github release assets. It will also uncompress zip files.","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive --require babel-polyfill --require should","test:cov":"babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require should --require should","lint":"eslint src test","check":"npm run lint && npm run test","build:lib":"babel src --out-dir lib","clean":"rimraf lib coverage","preversion":"npm run clean && npm run check","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib"},"bin":{"download-github-release":"bin/download-github-release"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"keywords":["github","release","download"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"dependencies":{"commander":"^2.9.0","extract-zip":"^1.5.0","gauge":"^2.6.0","multi-progress":"^2.0.0","superagent":"^3.5.2"},"devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-eslint":"^6.1.2","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.11.1","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","isparta":"^4.0.0","mocha":"^2.4.5","nock":"^8.0.0","rimraf":"^2.5.3","should":"^8.2.2","sinon":"^1.17.5","stream-buffers":"^3.0.0","tmp":"0.0.28"},"gitHead":"28d19e752e01cd92f112e97d16020912593891e4","homepage":"https://github.com/stephan83/download-github-release#readme","_id":"download-github-release@0.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"fb7311a2bbb96259114990ef72fc5916a8c957d8","size":5044,"noattachment":false,"key":"/download-github-release/-/download-github-release-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/download-github-release/download/download-github-release-0.3.0.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-github-release-0.3.0.tgz_1506033027785_0.6513936023693532"},"directories":{},"publish_time":1506033028790,"_hasShrinkwrap":false,"_cnpm_publish_time":1506033028790,"_cnpmcore_publish_time":"2021-12-17T02:26:53.415Z"},"0.2.0":{"name":"download-github-release","version":"0.2.0","description":"A node module to download Github release assets. It will also uncompress zip files.","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive --require babel-polyfill --require should","test:cov":"babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require should --require should","lint":"eslint src test","check":"npm run lint && npm run test","build:lib":"babel src --out-dir lib","clean":"rimraf lib coverage","preversion":"npm run clean && npm run check","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib"},"bin":{"download-github-release":"bin/download-github-release"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"keywords":["github","release","download"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"dependencies":{"commander":"^2.9.0","extract-zip":"^1.5.0","gauge":"^2.6.0","multi-progress":"^2.0.0","superagent":"^3.5.2"},"devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-eslint":"^6.1.2","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.11.1","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","isparta":"^4.0.0","mocha":"^2.4.5","nock":"^8.0.0","rimraf":"^2.5.3","should":"^8.2.2","sinon":"^1.17.5","stream-buffers":"^3.0.0","tmp":"0.0.28"},"gitHead":"623032fc0c34e326cbc0becc014db99bde74bcce","homepage":"https://github.com/stephan83/download-github-release#readme","_id":"download-github-release@0.2.0","_shasum":"a6b1b1567cb5d335318a7143939f00f0b5cdaeda","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"a6b1b1567cb5d335318a7143939f00f0b5cdaeda","size":5053,"noattachment":false,"key":"/download-github-release/-/download-github-release-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/download-github-release/download/download-github-release-0.2.0.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-github-release-0.2.0.tgz_1498655973867_0.8886132512707263"},"directories":{},"publish_time":1498655974760,"_hasShrinkwrap":false,"_cnpm_publish_time":1498655974760,"_cnpmcore_publish_time":"2021-12-17T02:26:53.637Z"},"0.1.3":{"name":"download-github-release","version":"0.1.3","description":"A node module to download Github release assets. It will also uncompress zip files.","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive --require babel-polyfill --require should","test:cov":"babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require should --require should","lint":"eslint src test","check":"npm run lint && npm run test","build:lib":"babel src --out-dir lib","clean":"rimraf lib coverage","preversion":"npm run clean && npm run check","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib"},"bin":{"download-github-release":"bin/download-github-release"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"keywords":["github","release","download"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"dependencies":{"commander":"^2.9.0","extract-zip":"^1.5.0","gauge":"^2.6.0","multi-progress":"^2.0.0","superagent":"^2.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-eslint":"^6.1.2","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.11.1","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","isparta":"^4.0.0","mocha":"^2.4.5","nock":"^8.0.0","rimraf":"^2.5.3","should":"^8.2.2","sinon":"^1.17.5","stream-buffers":"^3.0.0","tmp":"0.0.28"},"gitHead":"ed51497aa17d155dba3e9e862d696dea24e14107","homepage":"https://github.com/stephan83/download-github-release#readme","_id":"download-github-release@0.1.3","_shasum":"bc5b118c1c8e52324e4148db01d700bf1257c6b3","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"bc5b118c1c8e52324e4148db01d700bf1257c6b3","size":4924,"noattachment":false,"key":"/download-github-release/-/download-github-release-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/download-github-release/download/download-github-release-0.1.3.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/download-github-release-0.1.3.tgz_1469978525990_0.49420879292301834"},"directories":{},"publish_time":1469978529045,"_hasShrinkwrap":false,"_cnpm_publish_time":1469978529045,"_cnpmcore_publish_time":"2021-12-17T02:26:53.836Z"},"0.1.2":{"name":"download-github-release","version":"0.1.2","description":"A node module to download Github release assets. It will also uncompress zip files.","main":"lib/index.js","scripts":{"test":"mocha --compilers js:babel-core/register --recursive --require babel-polyfill --require should","test:cov":"babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive --require should --require should","lint":"eslint src test","check":"npm run lint && npm run test","build:lib":"babel src --out-dir lib","clean":"rimraf lib coverage","preversion":"npm run clean && npm run check","version":"npm run build:lib","postversion":"git push && git push --tags && npm run clean","prepublish":"npm run clean && npm run build:lib"},"bin":{"download-github-release":"bin/download-github-release"},"repository":{"type":"git","url":"git+https://github.com/stephan83/download-github-release.git"},"keywords":["github","release","download"],"author":{"name":"Stephan Florquin"},"license":"MIT","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"dependencies":{"commander":"^2.9.0","extract-zip":"^1.5.0","gauge":"^2.6.0","multi-progress":"^2.0.0","superagent":"^2.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-core":"^6.11.4","babel-eslint":"^6.1.2","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.11.1","eslint-plugin-jsx-a11y":"^1.5.5","eslint-plugin-react":"^5.2.2","isparta":"^4.0.0","mocha":"^2.4.5","rimraf":"^2.5.3","should":"^8.2.2"},"gitHead":"c08bdf1eb00ab568947b81a48d5b75bfd5cc780a","homepage":"https://github.com/stephan83/download-github-release#readme","_id":"download-github-release@0.1.2","_shasum":"f58a84652782de667a1d7a2ed47378066b56b145","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"stephan83","email":"stephan.florquin@gmail.com"},"dist":{"shasum":"f58a84652782de667a1d7a2ed47378066b56b145","size":4790,"noattachment":false,"key":"/download-github-release/-/download-github-release-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/download-github-release/download/download-github-release-0.1.2.tgz"},"maintainers":[{"name":"stephan83","email":"stephan.florquin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/download-github-release-0.1.2.tgz_1469968207095_0.8681864989921451"},"directories":{},"publish_time":1469968208865,"_hasShrinkwrap":false,"_cnpm_publish_time":1469968208865,"_cnpmcore_publish_time":"2021-12-17T02:26:54.058Z"}},"readme":"# Download Github Release\n\nA node module to download Github release assets. It will also uncompress zip files.\n\n[![Build Status](https://travis-ci.org/stephan83/download-github-release.svg?branch=master)](https://travis-ci.org/stephan83/download-github-release)\n[![codecov](https://codecov.io/gh/stephan83/download-github-release/branch/master/graph/badge.svg)](https://codecov.io/gh/stephan83/download-github-release)\n[![Build Status](https://david-dm.org/stephan83/download-github-release.svg)](https://david-dm.org/stephan83/download-github-release) \n\n```\n$ download-github-release -s darwin-x64 electron electron\nDownloading electron/electron@v1.3.1...\nelectron-v1.3.1-darwi... ▇▇▇▇▇---------------------------------------------------- 662.8s\nelectron-v1.3.1-darwi... ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇--------- 13.4s\nelectron-v1.3.1-darwi... ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇--- 3.6s\nffmpeg-v1.3.1-darwin-... ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 0.0s\n```\n\nThis is useful for instance if you have a project that depends on binaries released via Github.\n\n## Command line\n\n### Installation\n\n```bash\nnpm install -g download-github-release\n```\n\n### Usage\n\n```\nUsage: download-github-release [options] <user> <repo> [outputdir]\n\nOptions:\n\n  -h, --help             output usage information\n  -V, --version          output the version number\n  -p, --prerelease       download prerelease\n  -s, --search <regexp>  filter assets name\n  -z, --zipped           don't extract zip files\n```\n\n### Example\n\nDownload `electron/electron` assets whose name contains `darwin-x64` to `/tmp`.\n\n```\n$ download-github-release -s darwin-x64 electron electron /tmp\n```\n\n## API\n\n### Installation\n\n```bash\nnpm install --save download-github-release\n```\n\n### Usage\n\n```javascript\nvar downloadRelease = require('download-github-release');\n\nvar user = 'some user';\nvar repo = 'some repo';\nvar outputdir = 'some output directory';\nvar leaveZipped = false;\n\n// Define a function to filter releases.\nfunction filterRelease(release) {\n  // Filter out prereleases.\n  return release.prerelease === false;\n}\n\n// Define a function to filter assets.\nfunction filterAsset(asset) {\n  // Select assets that contain the string 'windows'.\n  return asset.name.indexOf('windows') >= 0;\n}\n\ndownloadRelease(user, repo, outputdir, filterRelease, filterAsset, leaveZipped)\n  .then(function() {\n    console.log('All done!');\n  })\n  .catch(function(err) {\n    console.error(err.message);\n  });\n```\n\n## TODO\n\n- other compression formats\n- option to download specific release instead of latest?\n- option to download source?\n- private repos?\n","_attachments":{},"homepage":"https://github.com/stephan83/download-github-release#readme","bugs":{"url":"https://github.com/stephan83/download-github-release/issues"},"license":"MIT"}