{"id":16398518,"url":"https://github.com/vladfrangu/async-dl-github-repo","last_synced_at":"2026-05-16T15:34:11.568Z","repository":{"id":57185536,"uuid":"111581771","full_name":"vladfrangu/async-dl-github-repo","owner":"vladfrangu","description":"Asynchronously download a GitHub Repo","archived":false,"fork":false,"pushed_at":"2020-10-03T09:55:11.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T04:51:36.495Z","etag":null,"topics":["download","download-github","download-github-repo","github","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladfrangu.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-21T17:42:05.000Z","updated_at":"2020-10-03T09:55:13.000Z","dependencies_parsed_at":"2022-09-06T04:11:11.875Z","dependency_job_id":null,"html_url":"https://github.com/vladfrangu/async-dl-github-repo","commit_stats":null,"previous_names":["kingdgrizzle/async-dl-github-repo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vladfrangu/async-dl-github-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfrangu%2Fasync-dl-github-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfrangu%2Fasync-dl-github-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfrangu%2Fasync-dl-github-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfrangu%2Fasync-dl-github-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladfrangu","download_url":"https://codeload.github.com/vladfrangu/async-dl-github-repo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfrangu%2Fasync-dl-github-repo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33108183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["download","download-github","download-github-repo","github","hacktoberfest"],"created_at":"2024-10-11T05:13:01.439Z","updated_at":"2026-05-16T15:34:11.550Z","avatar_url":"https://github.com/vladfrangu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\n  \u003cbr /\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://www.npmjs.com/package/async-dl-github-repo\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/async-dl-github-repo.svg?maxAge=3600\" alt=\"NPM version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/async-dl-github-repo\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/async-dl-github-repo.svg?maxAge=3600\" alt=\"NPM downloads\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://david-dm.org/KingDGrizzle/async-dl-github-repo\"\u003e\u003cimg src=\"https://img.shields.io/david/KingDGrizzle/async-dl-github-repo.svg?maxAge=3600\" alt=\"Dependencies\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://nodei.co/npm/async-dl-github-repo/\"\u003e\u003cimg src=\"https://nodei.co/npm/async-dl-github-repo.png?downloads=true\u0026stars=true\" alt=\"NPM info\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n# async-dl-github-repo\n\nAsynchronously download a GitHub Repo\n\n## Installation\n\n**Node.js 8.0 or newer is required**\n\nTo install this module, just run:\n\n```\nnpm i async-dl-github-repo\n```\n\n## Usage and Examples\n\nThis module has one function, that is exported by default.\n\n### download(repo, destination, downloadOnly = false)\n\nDownload a GitHub repo, `repo` should be in the format: `Username/ProjectName[#branch-name]`, where `#branch-name` is optional. (Don't include the brackets). By default, the branch is set to `master`.\n\n`path` should be relative to the [process cwd](https://nodejs.org/api/process.html#process_process_cwd)\n\n`downloadOnly` is optional, but you can make it just save the archive\n\nReturns a Promise that resolves with the zip and final paths if the download was successful, or rejects if there were any errors.\n\nExample:\n\n```js\nconst dlRepo = require(\"async-dl-github-repo\");\n\ndlRepo(\"vladfrangu/async-dl-github-repo\", \"./temp\").then(results =\u003e {\n  console.log(`Downloaded successfuly at ${results.finalPath}`);\n}).catch(err =\u003e {\n  console.error(`Download errored: ${err}`);\n});\n```\n\nDownloading just the archive:\n\n```js\nconst dlRepo = require(\"async-dl-github-repo\");\n\ndlRepo(\"vladfrangu/async-dl-github-repo\", \"./temp\", true).then(results =\u003e {\n  console.log(`Downloaded at ${results.zipPath}`);\n}).catch(err =\u003e {\n  console.error(`Download errored: ${err}`);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladfrangu%2Fasync-dl-github-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladfrangu%2Fasync-dl-github-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladfrangu%2Fasync-dl-github-repo/lists"}