Skip to content

jabed-web-dev/gitdown-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitdown-cli

Download single folder and files from github repository

See gitdown for the command-line github single folder and files download.

Install

npm install -g gitdown-cli

Usage in CLI Command

# <path> (.|dir|dir/subdir|new-path|../) 
# <branch> use any branch
gitdown https://github.com/user/repo/tree/<branch>/path <path>? 
or
# ignore github.com and tree/branch
gitdown user/repo/path <path>?

Example

# folder download
gitdown https://github.com/nodejs/node/tree/main/doc/api <new-path>?
or
# file download 
gitdown https://github.com/nodejs/node/blob/main/doc/api/buffer.md <new-name>?

Usage in Nodejs

const gitdown = require('gitdown')

gitdown(url, path, dir?)

About

download github files and folders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published