Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@screencloud/fetch-github-release
Advanced tools
a micro CLI tool for downloading named assets from tagged github releases
Install as
npm i -g @screencloud/fetch-github-release
Afterwards use fetch-github-release
or simply fghr
.
Run fghr -h
for a comprehensive help
screencloud/fetch-github-release cli
Usage: cli [options]
Options:
-V, --version output the version number
-m, --make-dir Creates the output directory if it doesn't exist yet
-t, --token <token> Github token to be used (default: GH_TOKEN|GITHUB_TOKEN) (default: "b1885a63210480d6bb422fe079fb9dbd1290aeb3")
-v, --tag <tag> Github release tag (default: GH_TAG|GITHUB_TAG)
-r, --repo <github repo slug> Target github repository slug (default: GH_REPO|GITHUB_REPOSITORY)
-a, --asset <file name> asset name (repeatable, default: GH_ASSET_NAME|GITHUB_ASSET_NAME) (default: [])
-u, --unzip Unpack .zip files automatically into a same-named folder
-o, --output <path> Output path for downloaded assets (default: CWD) (default: "C:\\git\\screencloud\\fetch-github-release")
-h, --help display help for command
Use either arguments or environment variables for configuration.
To download a asset foobar.zip
for release v1.2.3
from github repository example/bob
run
fghr -a foobar.zip -v v1.2.3 -r example/bob -t <your github token>
Or with environment variables in mind
GH_REPO=example/bob GH_TOKEN=<your github token> GH_TAG=v1.2.3
fghr -a foobar.zip
The --asset|-a argument is repeatable
GH_REPO=example/bob GH_TOKEN=<your github token> GH_TAG=v1.2.3
fghr -a foobar.zip -a alice.zip -a bob.zip
Assets ending in .zip
can be automatically unzipped into a folder of the same name (minus the extension).
Use -u
or --unzip
to do so. All other assets will ignore the flag automatically.
FAQs
CLI downloader for github release assets
The npm package @screencloud/fetch-github-release receives a total of 11 weekly downloads. As such, @screencloud/fetch-github-release popularity was classified as not popular.
We found that @screencloud/fetch-github-release demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.