quick-github-downloader

1.0.41 • Public • Published

Quick-Github-Downloader

Downloads the files from a github repository (and you can specify which directory to grab) and puts them in a specified output folder - all in js.

All it does:

const githubDownloader = require('quick-github-downloader');

githubDownloader(repository, githubSubdir, outputDir, callback);

This will download the repository, select the sub dir you want, copy it to the output directory and delete the other unneeded stuff.

For example,

githubDownloader('Cornchipss/Quick-Github-Downloader', '/sample', './test-output', () =>
{
    console.log('Shazam!');
    // do stuff with the downloaded files located in ./test-output
});

Readme

Keywords

Package Sidebar

Install

npm i quick-github-downloader

Weekly Downloads

1

Version

1.0.41

License

MIT

Unpacked Size

4.21 kB

Total Files

6

Last publish

Collaborators

  • cornchip