browser-github-folder-downloader
v1.0.14
Published
A utility to download GitHub folders as zip files
Downloads
37
Maintainers
Readme
GitHub Folder Downloader
A utility to download GitHub folders as zip files. (Browser Version)
Installation
npm i browser-github-folder-downloader
Usage
import { DownloadGithubFolder } from "browser-github-folder-downloader";
const urlParts = url.split("/");
const folderName = urlParts[urlParts.length - 1];
DownloadGithubFolder(url, folderName, (line) => {
console.log(line);
})
.then(() => {
console.log("Downloaded");
})
.catch((e) => {
console.error(e);
});