@mrhansamala/github-repo-zip-downloader
v1.0.0
Published
github repo zip downloader
Downloads
70
Maintainers
Readme
GitHub Repository ZIP Downloader
This is a Node.js utility script to download ZIP files of GitHub repositories, targeting the main
or master
branch. Ideal for quickly fetching repository contents for offline use.
Features
- Automatically detects and downloads
main
ormaster
branch ZIP files. - Supports user-friendly error handling for invalid or missing repositories.
- Easy-to-use and customizable.
Installation
To install the package via npm, use the following command:
npm install @mrhansamala/github-repo-zip-downloader
Usage Example Script javascript
import downloadGitHubRepoZip from '@mrhansamala/github-repo-zip-downloader';
const exampleRepoUrl = 'https://github.com/your-username/your-repository'; // Replace with the desired GitHub repo URL
downloadGitHubRepoZip(exampleRepoUrl);