{"id":13526975,"url":"https://github.com/sindresorhus/remote-git-tags","last_synced_at":"2025-04-09T17:26:42.008Z","repository":{"id":20987873,"uuid":"24277288","full_name":"sindresorhus/remote-git-tags","owner":"sindresorhus","description":"Get tags from a remote git repo. Using only JS. No git binary required.","archived":false,"fork":false,"pushed_at":"2022-07-09T03:33:47.000Z","size":11,"stargazers_count":49,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T05:24:01.499Z","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/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2014-09-20T23:39:17.000Z","updated_at":"2022-12-17T03:19:39.000Z","dependencies_parsed_at":"2022-07-26T15:00:07.128Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/remote-git-tags","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fremote-git-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fremote-git-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fremote-git-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fremote-git-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/remote-git-tags/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247330516,"owners_count":20921643,"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-08-01T06:01:38.689Z","updated_at":"2025-04-09T17:26:41.990Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Repository","Packages","包","目录","Miscellaneous","Number"],"sub_categories":["Git","Miscellaneous","其他"],"readme":"# remote-git-tags\n\n\u003e Get tags from a remote Git repo\n\n## Install\n\n```\n$ npm install remote-git-tags\n```\n\nThe `git` binary must be installed and in your [PATH](https://medium.com/@jalendport/what-exactly-is-your-shell-path-2f076f02deb4).\n\n## Usage\n\n```js\nimport remoteGitTags from 'remote-git-tags';\n\nconsole.log(await remoteGitTags('https://github.com/sindresorhus/remote-git-tags'));\n//=\u003e Map {'v1.0.0' =\u003e '69e308412e2a5cffa692951f0274091ef23e0e32', …}\n```\n\n## API\n\n### remoteGitTags(repoUrl)\n\nReturns a `Promise\u003cMap\u003cstring, string\u003e\u003e` with the Git tags as keys and their commit SHA as values.\n\n#### repoUrl\n\nType: `string`\n\nThe URL to the Git repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fremote-git-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fremote-git-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fremote-git-tags/lists"}