Download directory from a GitHub repo
GitHub doesn’t let you download a single folder from a repo, which might be necessary when you just need a few files from a large repository.
This tool will handle the download of all the files in a directory, in a single click, after you entered your token.
You can create a new token here, example.
The download starts automatically when you visit pass the link to the GitHub directory as url parameter, like:
sekedus.github.io/downdir/?url=https://github.com/mrdoob/three.js/tree/dev/build
You can also specify download filename by adding filename parameter, like:
sekedus.github.io/downdir/?url=https://github.com/mrdoob/three.js/tree/dev/build&filename=three-js-build to save the file as three-js-build.zip.
This is an alternative to the existing GitZip and DownGit but without the cruft.
To run the project locally or contribute, follow these steps:
Make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/sekedus/downdir cd downdir -
Install dependencies:
npm install
-
Start development server:
npm start # or npm run watch:buildThis runs:
- TypeScript in watch mode
- Parcel dev server at http://localhost:1234
- Vitest in watch mode for unit testing
- list-github-dir-content - List all the files in a GitHub repo’s directory
- Refined GitHub - Browser extension that adds a link to this app to GitHub (and much more)
MIT © Federico Brigante