
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@etclabscore/dl-github-releases
Advanced tools
<center> <img alt="Dependabot status" src="https://api.dependabot.com/badges/status?host=github&repo=etclabscore/dl
A node module to download Github assets for Github releases. It will also uncompress zip files.
$ npm install -g @etclabscore/dl-github-releases
$ dl-github-releases --help
Usage: download-github-releases [options] <user> <repo>
Options:
-V, --version output the version number
-o, --outputDir [output] output directory [output] (default: "/Users/zb/Code/etclabs/dl-github-releases")
-p, --includePre download prerelease
-d, --includeDraft download draft releases
-a, --filterAssetsByName <rexexp> filter assets name
-z, --zipped don't extract zip files
-h, --help output usage information
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
$ dl-github-releases -a *.md open-rpc spec
Downloading open-rpc/spec@1.0.0...
spec.md ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 0.0s
spec.pdf ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇--------- 0.1s
npm install --save dl-github-releases
var downloadReleases = require('dl-github-releases');
var user = 'some user';
var repo = 'some repo';
var outputdir = 'some output directory';
// 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;
}
downloadReleases(user, repo, outputdir, filterRelease, filterAsset)
.then(function() {
console.log('All done!');
})
.catch(function(err) {
console.error(err.message);
});
FAQs
<center> <img alt="Dependabot status" src="https://api.dependabot.com/badges/status?host=github&repo=etclabscore/dl
We found that @etclabscore/dl-github-releases demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.