This CLI tool allows for the quick downloading of an entire GitHub directory's contents directly to your local machine.
To install this tool, run:
npm install -g d-github
To download a directory from GitHub, execute:
d-github <GitHub URL> [--output <path>]
<GitHub URL>
: The full URL of the GitHub directory you wish to download.--output
,-o
: Specify the output directory where the downloaded content will be saved. If not specified, content will be saved in the current directory.
Downloading a directory to the current directory:
d-github https://github.com/username/repo/tree/branch/path/to/directory
Specify an output directory:
d-github https://github.com/username/repo/tree/branch/path/to/directory --output ./myDirectory