Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
download-github-release
Advanced tools
Readme
A node module to download Github release assets. It will also uncompress zip files.
$ download-github-release -s darwin-x64 electron electron
Downloading electron/electron@v1.3.1...
electron-v1.3.1-darwi... ▇▇▇▇▇---------------------------------------------------- 662.8s
electron-v1.3.1-darwi... ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇--------- 13.4s
electron-v1.3.1-darwi... ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇--- 3.6s
ffmpeg-v1.3.1-darwin-... ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 0.0s
This is useful for instance if you have a project that depends on binaries released via Github.
npm install -g download-github-release
Usage: download-github-release [options] <user> <repo> [outputdir]
Options:
-h, --help output usage information
-V, --version output the version number
-p, --prerelease download prerelease
-s, --search <regexp> filter assets name
-z, --zipped don't extract zip files
Download electron/electron
assets whose name contains darwin-x64
to /tmp
.
$ download-github-release -s darwin-x64 electron electron /tmp
npm install --save download-github-release
var downloadRelease = require('download-github-release');
var user = 'some user';
var repo = 'some repo';
var outputdir = 'some output directory';
var leaveZipped = false;
// Define a function to filter releases.
function filterRelease(release) {
// Filter out prereleases.
return release.prerelease === false;
}
// Define a function to filter assets.
function filterAsset(asset) {
// Select assets that contain the string 'windows'.
return asset.name.indexOf('windows') >= 0;
}
downloadRelease(user, repo, outputdir, filterRelease, filterAsset, leaveZipped)
.then(function() {
console.log('All done!');
})
.catch(function(err) {
console.error(err.message);
});
FAQs
A node module to download Github release assets. It will also uncompress zip files.
The npm package download-github-release receives a total of 329 weekly downloads. As such, download-github-release popularity was classified as not popular.
We found that download-github-release demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.