Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sekedus/downdir

 
 

Repository files navigation

DownDir

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.

Development Guide

To run the project locally or contribute, follow these steps:

Prerequisites

Make sure you have the following installed:

Setup

  1. Clone the repository:

    git clone https://github.com/sekedus/downdir
    cd downdir
  2. Install dependencies:

    npm install
  3. Start development server:

    npm start
    
    # or
    
    npm run watch:build

    This runs:

    • TypeScript in watch mode
    • Parcel dev server at http://localhost:1234
    • Vitest in watch mode for unit testing

Related

License

MIT © Federico Brigante

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 64.6%
  • HTML 19.2%
  • CSS 16.2%