{"id":15003454,"url":"https://github.com/hua1995116/git-down-repo","last_synced_at":"2025-08-17T18:07:26.542Z","repository":{"id":98521376,"uuid":"140940986","full_name":"hua1995116/git-down-repo","owner":"hua1995116","description":":octocat:Download git-repo for any url","archived":false,"fork":false,"pushed_at":"2019-01-12T14:57:12.000Z","size":23,"stargazers_count":54,"open_issues_count":2,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-02T08:01:40.788Z","etag":null,"topics":["git","github-api","nodejs"],"latest_commit_sha":null,"homepage":"","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/hua1995116.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-14T11:34:30.000Z","updated_at":"2024-12-09T03:29:20.000Z","dependencies_parsed_at":"2023-04-16T12:35:23.895Z","dependency_job_id":null,"html_url":"https://github.com/hua1995116/git-down-repo","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"193c94e96b81c9707d2b7f7e4b2398a33d693b3e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fgit-down-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fgit-down-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fgit-down-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fgit-down-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hua1995116","download_url":"https://codeload.github.com/hua1995116/git-down-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238955607,"owners_count":19558452,"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":["git","github-api","nodejs"],"created_at":"2024-09-24T18:58:30.864Z","updated_at":"2025-02-15T06:31:07.023Z","avatar_url":"https://github.com/hua1995116.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-down-repo\n\n\u003cp algin=\"center\"\u003e\n    \u003ca href=\"https://npmcharts.com/compare/git-down-repo?minimal=true\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/git-down-repo.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/git-down-repo\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/git-down-repo.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/git-down-repo\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/git-down-repo.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# 开始\n\n```Shell\nnpm install git-down-repo -g // 安装全局\n\n// test \ngitdown https://github.com/hua1995116/webchat  // 下载整个仓库（默认master）\n\ngitdown https://github.com/hua1995116/webchat dev // 下载某个仓库的dev分支\n\ngitdown https://github.com/hua1995116/webchat/tree/master/config // 下载仓库某个文件夹\n\ngitdown https://github.com/hua1995116/webchat/blob/master/config/dev.env.js // 下载某个文件\n\ngitdown https://github.com/hua1995116/webchat/blob/master/config/dev.env.js https://github.com/hua1995116/webpack-plugin-inner-script/blob/master/index.js // 下载多个项目（空格分隔）\n```\n\n# node-modules\n\n```\ncnpm i git-down-repo\n```\n```\ntest.js\n\nconst gitdown = require('git-down-repo');\n\nconst gitdownFunc = gitdown();\n\ngitdownFunc(['https://github.com/hua1995116/webchat/blob/master/.eslintrc.js']);\n\n```\n\n# 版本\n\n## 2018.7.21\nv2.5.3\n1.修复中文乱码问题（url 支持utf-8）\n\nv2.4.2\n\n1.修复commongJS导致的bug\n\nv2.4.1\n\n1.支持以commonJs方式引入至项目中\n\n## 2018.7.18\nv2.3.1\n\n1.支持多个链接形式\n2.修复单个文件下载多余文件情况\n\n## 2018.7.16\nv2.3.0\n\n1.优化体验，当本地存在需下载目录时候，可以选择是否继续覆盖\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018 蓝色的秋风\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhua1995116%2Fgit-down-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhua1995116%2Fgit-down-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhua1995116%2Fgit-down-repo/lists"}