1.0.0 • Published 1 year ago

@mrhansamala/github-repo-zip-downloader v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

GitHub Repository ZIP Downloader

GitHub 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 or master 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);
1.0.0

1 year ago