Skip to content
/ DownGit Public
forked from MinhasKamal/DownGit

Create GitHub Resource Download Link with github auth support

License

Notifications You must be signed in to change notification settings

oe/DownGit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DownGit

Create GitHub Resource Download Link

With this tool you can directly download or create download link to any GitHub public directory or file.

Website

DownGit ↑

Credits

This web app was fork from MinhasKamal, I just added Github auth feature(so that this app could has much more github api request rate). Thanks to MinhasKamal

Github auth related code files:

  • frontend auth helper: ./app/auth-helper.js
  • auth callback page: ./auth.html
  • serverside code(to retrieve github accesstoken) powered by Cloudflare worker: ./gh-auth-worker.js

How to Use?

Advanced Usage

A typical download URL will look like this- https://minhaskamal.github.io/DownGit/#/home?url=<link>&fileName=<name>&rootDirectory=<true or false or name>

Now, if you want to download this directory- https://github.com/MinhasKamal/DownGit/tree/master/res/images with this file name- DownGit-Images.zip and this root directory name- ImagesOfDownGit, then the URL will be- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&fileName=DownGit-Images&rootDirectory=ImagesOfDownGit

In default, value of fileName and rootDirectory is set to the name of the downloading file or directory. If you do not want to add the directory itself in the zip, then set rootDirectory=false. Like: this link- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&rootDirectory=false, will download a file named images.zip; however the root directory- "images", will not be included in the zip.

If you want to download file- https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png with name- DownGitIcon.zip, then the link will be- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png&fileName=DownGitIcon

License

MIT License
DownGit is licensed under MIT License.

About

Create GitHub Resource Download Link with github auth support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.2%
  • HTML 33.0%
  • CSS 3.8%