{"id":15293482,"url":"https://github.com/node-libraries/github-files","last_synced_at":"2026-05-06T05:32:30.798Z","repository":{"id":65921094,"uuid":"594628144","full_name":"node-libraries/github-files","owner":"node-libraries","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-12T12:25:28.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T01:45:17.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-libraries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-29T06:00:25.000Z","updated_at":"2023-02-16T09:06:30.000Z","dependencies_parsed_at":"2025-01-29T20:28:52.079Z","dependency_job_id":null,"html_url":"https://github.com/node-libraries/github-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fgithub-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fgithub-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fgithub-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fgithub-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-libraries","download_url":"https://codeload.github.com/node-libraries/github-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294768,"owners_count":20591909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T16:48:55.486Z","updated_at":"2026-05-06T05:32:30.735Z","avatar_url":"https://github.com/node-libraries.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-files\n\nDownload the file at the given github address\n\n## usage\n\n```sh\nUsage: github-files [options] [command]\n\nOptions:\n  -V, --version                      output the version number\n  -h, --help                         display help for command\n\nCommands:\n  list [options] \u003curl\u003e               Retrieving the file list\n    -j, --json                        output json format\n  download [options] \u003curl\u003e [outdir]  Download files\n    -p, --parallels \u003cparallels\u003e       Number of parallel downloads\n  help [command]                     display help for command\n```\n\n- Download files in the output folder with a parallel number of 5.\n\n```sh\nnpx github-files download https://github.com/node-libraries/scaffold/tree/master/src output -p 5\n```\n\n## When called from a programme\n\n```ts\nimport { getGitHubFileList, downloadGitHubFiles } from \"github-files\";\n\nconst main = async () =\u003e {\n  const files = await getGitHubFileList(\n    \"https://github.com/node-libraries/scaffold/tree/master/src\"\n  );\n  if (files) await downloadGitHubFiles(files, \"output\");\n};\nmain();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fgithub-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-libraries%2Fgithub-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fgithub-files/lists"}