Node.js Tutorial to Download Full Github Project Source Code to Local Folder Using get-github-code Library in Javascript Full Project For Beginners

 

 

npm i get-github-code

 

 

Usage

 

 

 

 

 

 

 

 

API

download(url, [options])

or

download(options)

Both of them return Promise<void>

url

In the format: https://github.com/<username>/<repo>#<branch or tag>

If there is no #<branch> or #<tag> at the end, the request will use the repository default branch.

options

If you are using TypeScript:

Note: all options are optional. If a url is given, the usernamerepo and branch will be ignored.

CommonJS:

Leave a Reply