1.0.2 • Published 6 months ago

github-files v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

github-files

Download the file at the given github address

usage

Usage: github-files [options] [command]

Options:
  -V, --version                      output the version number
  -h, --help                         display help for command

Commands:
  list [options] <url>               Retrieving the file list
    -j, --json                        output json format
  download [options] <url> [outdir]  Download files
    -p, --parallels <parallels>       Number of parallel downloads
  help [command]                     display help for command
  • Download files in the output folder with a parallel number of 5.
npx github-files download https://github.com/node-libraries/scaffold/tree/master/src output -p 5

When called from a programme

import { getGitHubFileList, downloadGitHubFiles } from "github-files";

const main = async () => {
  const files = await getGitHubFileList(
    "https://github.com/node-libraries/scaffold/tree/master/src"
  );
  if (files) await downloadGitHubFiles(files, "output");
};
main();
1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

0.0.11

11 months ago

0.0.12

10 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago