Download single folder and files from github repository
See gitdown for the command-line github single folder and files download.
npm install -g gitdown-cli
# <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>?
# 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>?
const gitdown = require('gitdown')
gitdown(url, path, dir?)