A utility to download GitHub folders as zip files. (Browser Version)
npm i browser-github-folder-downloader
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);
});