A thin wrapper library (v4.0.3, maintained) for fetching release binaries from GitHub Releases. Provides simple functions to download the latest or a specific release asset. Distinguishes itself by being lightweight and focused solely on downloading release assets, with no dependency on the full GitHub API. Works with Node.js (^14.18.0 || ^16.13.0 || >=18.0.0).
npm install gh-release-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates downloading the latest release asset from a GitHub repository.
Use import syntax or dynamic import(). If using CommonJS, stick with v3.
Always use object syntax { package: 'filename' }, not bare variable named 'package'.Set GITHUB_TOKEN environment variable or pass token option for higher limits.
Wrap arguments in an object: { repository: 'org/repo', package: 'file', destination: 'path' }Run npm install gh-release-fetch. If using CommonJS, use dynamic import() or upgrade project to ESM.
Use import { fetchLatest } from 'gh-release-fetch' or use dynamic import('gh-release-fetch').then(...).Verify the repository name (org/repo), package filename (case-sensitive), and tag (if using fetchRelease).