{"id":15003450,"url":"https://github.com/iyowei/get-git-repo-url","last_synced_at":"2026-02-06T02:33:08.046Z","repository":{"id":57119752,"uuid":"437831121","full_name":"iyowei/get-git-repo-url","owner":"iyowei","description":"异步获取指定 Git 项目远程仓库地址。","archived":false,"fork":false,"pushed_at":"2021-12-18T07:38:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T08:18:51.894Z","etag":null,"topics":["git","iyowei","nodejs","utilities"],"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/iyowei.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":"2021-12-13T10:34:59.000Z","updated_at":"2021-12-18T07:38:21.000Z","dependencies_parsed_at":"2022-08-23T15:40:54.767Z","dependency_job_id":null,"html_url":"https://github.com/iyowei/get-git-repo-url","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/iyowei/get-git-repo-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Fget-git-repo-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Fget-git-repo-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Fget-git-repo-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Fget-git-repo-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyowei","download_url":"https://codeload.github.com/iyowei/get-git-repo-url/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Fget-git-repo-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29145871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T01:13:33.096Z","status":"online","status_checked_at":"2026-02-06T02:00:08.092Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["git","iyowei","nodejs","utilities"],"created_at":"2024-09-24T18:58:30.703Z","updated_at":"2026-02-06T02:33:07.997Z","avatar_url":"https://github.com/iyowei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[@iyowei/get-git-repo-url-sync]: #\n[@iyowei/p-get-git-repo-url]: #\n\n\n\n# getGitRepoUrl(path, callback)\n\n\u003e **异步** 获取指定 Git 项目远程仓库地址。\n\n## 使用\n\n- path {String} 工作路径，**默认：** `\"\"`；\n- callback {Function}，\n  - err {Error} 错误信息，没发生错误，则返回 `false`；\n  - url {String | Null} 远程 Git 仓库地址。\n\n```javascript\nimport getGitRepoUrl from '@iyowei/get-git-repo-url';\n\ngetGitRepoUrl(process.cwd(), (err, url) =\u003e {\n  if (!err) {\n    console.log(url);\n    return;\n  }\n\n  throw err;\n});\n```\n\n## 安装\n\n[![Node version](https://img.shields.io/badge/node.js-%3E%3D12.20.0-brightgreen?style=flat\u0026logo=Node.js)](https://nodejs.org/en/download/)\n\n```shell\n# Pnpm\npnpm add @iyowei/get-git-repo-url\n\n# yarn\nyarn add @iyowei/get-git-repo-url\n\n# npm\nnpm add @iyowei/get-git-repo-url\n```\n\n## 相关\n\n- [@iyowei/get-git-repo-url-sync][@iyowei/get-git-repo-url-sync], 串行实现；\n- [@iyowei/p-get-git-repo-url][@iyowei/p-get-git-repo-url]，并行接口，Promise 版。\n\n## 参与贡献\n![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyowei%2Fget-git-repo-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyowei%2Fget-git-repo-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyowei%2Fget-git-repo-url/lists"}