{"id":13472201,"url":"https://github.com/phated/github-download-directory","last_synced_at":"2025-08-31T17:42:33.534Z","repository":{"id":28256418,"uuid":"117749798","full_name":"phated/github-download-directory","owner":"phated","description":"Download the contents of a given directory from a repository on GitHub.","archived":false,"fork":false,"pushed_at":"2022-04-08T18:32:48.000Z","size":22,"stargazers_count":28,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T03:04:33.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phated.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-16T22:21:50.000Z","updated_at":"2024-05-19T12:46:50.000Z","dependencies_parsed_at":"2022-08-07T13:15:36.365Z","dependency_job_id":null,"html_url":"https://github.com/phated/github-download-directory","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phated%2Fgithub-download-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phated%2Fgithub-download-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phated%2Fgithub-download-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phated%2Fgithub-download-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phated","download_url":"https://codeload.github.com/phated/github-download-directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247662558,"owners_count":20975265,"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-07-31T16:00:52.847Z","updated_at":"2025-04-10T01:23:12.269Z","avatar_url":"https://github.com/phated.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# github-download-directory\n\nDownload the contents of a given directory from a repository on GitHub.\n\nOnly works in node 12+\n\n## Usage\n\nBest used from the command line:\n\n```bash\n\u003e github-download-directory gulpjs/gulp docs\n```\n\nOr programatic:\n\n```js\nvar downloader = require('github-download-directory');\n\ndownloader.download('gulpjs', 'gulp', 'docs').then(console.log, console.error);\n```\n\nYou can also construct a downloader instance:\n\n```js\nvar { Downloader } = require('github-download-directory');\n\n// You can even include custom cache stores compatible with https://www.npmjs.com/package/keyv\nvar KeyvFile = require('keyv-file').KeyvFile;\nvar store = new KeyvFile();\n\nvar custom = new Downloader({\n  cache: { store },\n  github: { auth: 'SOME_AUTH_TOKEN' },\n});\n\ncustom.download('gulpjs', 'gulp', 'docs').then(console.log, console.error);\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphated%2Fgithub-download-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphated%2Fgithub-download-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphated%2Fgithub-download-directory/lists"}