browser-github-folder-downloader
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

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);
});

Package Sidebar

Install

npm i browser-github-folder-downloader

Weekly Downloads

2

Version

1.0.14

License

ISC

Unpacked Size

6.1 kB

Total Files

4

Last publish

Collaborators

  • ahmed_hanye