{"_id":"remote-git-tags","_rev":"518151","name":"remote-git-tags","description":"Get tags from a remote Git repo","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-08-09T20:10:45.000Z","created":"2014-09-20T23:43:38.969Z","4.0.0":"2021-08-09T20:09:12.154Z","3.0.0":"2019-06-14T16:20:10.045Z","2.0.0":"2017-05-11T11:16:16.876Z","1.0.0":"2014-09-20T23:43:38.969Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/remote-git-tags.git"},"versions":{"4.0.0":{"name":"remote-git-tags","version":"4.0.0","description":"Get tags from a remote Git repo","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/remote-git-tags.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["git","tags","tag","remote","ls-remote","ls","repo","repository","commit","sha","url"],"devDependencies":{"ava":"^3.15.0","xo":"^0.44.0"},"gitHead":"c766cf12a9ddc0a12fd1972029c773b4625a78a5","bugs":{"url":"https://github.com/sindresorhus/remote-git-tags/issues"},"homepage":"https://github.com/sindresorhus/remote-git-tags#readme","_id":"remote-git-tags@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"d47fd1b818d994c644ed175381518e014ac8c3a3","size":1893,"noattachment":false,"key":"/remote-git-tags/-/remote-git-tags-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remote-git-tags/download/remote-git-tags-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remote-git-tags_4.0.0_1628539752013_0.6695901016292221"},"_hasShrinkwrap":false,"publish_time":1628539752154,"_cnpm_publish_time":1628539752154},"3.0.0":{"name":"remote-git-tags","version":"3.0.0","description":"Get tags from a remote Git repo","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/remote-git-tags.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["git","tags","tag","remote","ls-remote","ls","repo","repository","commit","sha","url"],"devDependencies":{"ava":"^2.1.0","xo":"^0.24.0"},"gitHead":"2abfb4edf18892661b2f775373bf949077f4f22b","bugs":{"url":"https://github.com/sindresorhus/remote-git-tags/issues"},"homepage":"https://github.com/sindresorhus/remote-git-tags#readme","_id":"remote-git-tags@3.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"424f8ec2cdea00bb5af1784a49190f25e16983c3","size":1904,"noattachment":false,"key":"/remote-git-tags/-/remote-git-tags-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remote-git-tags/download/remote-git-tags-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remote-git-tags_3.0.0_1560529209913_0.18077857495041671"},"_hasShrinkwrap":false,"publish_time":1560529210045,"_cnpm_publish_time":1560529210045},"2.0.0":{"name":"remote-git-tags","version":"2.0.0","description":"Get tags from a remote Git repo. Using only JS. No Git binary required.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/remote-git-tags.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["git","tags","tag","remote","repo","repository","vanilla","js","javascript","ls","commit","sha","url"],"dependencies":{"git-fetch-pack":"^0.1.1","git-transport-protocol":"^0.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"34a241e62bc2c0a8191532f649b350767446dbbf","bugs":{"url":"https://github.com/sindresorhus/remote-git-tags/issues"},"homepage":"https://github.com/sindresorhus/remote-git-tags#readme","_id":"remote-git-tags@2.0.0","_shasum":"1152f39cf8b5268ae0e4307636ef741ec341664c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1152f39cf8b5268ae0e4307636ef741ec341664c","size":2304,"noattachment":false,"key":"/remote-git-tags/-/remote-git-tags-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remote-git-tags/download/remote-git-tags-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/remote-git-tags-2.0.0.tgz_1494501374741_0.08571516256779432"},"directories":{},"publish_time":1494501376876,"_cnpm_publish_time":1494501376876,"_hasShrinkwrap":false},"1.0.0":{"name":"remote-git-tags","version":"1.0.0","description":"Get tags from a remote git repo. Using only JS. No git binary required.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/remote-git-tags"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["git","tags","tag","remote","repo","repository","js","javascript","ls","commit","sha","url"],"dependencies":{"git-fetch-pack":"^0.1.1","git-transport-protocol":"^0.1.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"5e89596d753bdcdca9689f5cc885072b5ea531f5","bugs":{"url":"https://github.com/sindresorhus/remote-git-tags/issues"},"homepage":"https://github.com/sindresorhus/remote-git-tags","_id":"remote-git-tags@1.0.0","_shasum":"80e961b17c51ecfc50f2afb976bf1dcd0271efb8","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"80e961b17c51ecfc50f2afb976bf1dcd0271efb8","size":1516,"noattachment":false,"key":"/remote-git-tags/-/remote-git-tags-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remote-git-tags/download/remote-git-tags-1.0.0.tgz"},"directories":{},"publish_time":1411256618969,"_cnpm_publish_time":1411256618969,"_hasShrinkwrap":false}},"readme":"# remote-git-tags\n\n> 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//=> Map {'v1.0.0' => '69e308412e2a5cffa692951f0274091ef23e0e32', …}\n```\n\n## API\n\n### remoteGitTags(repoUrl)\n\nReturns a `Promise<Map<string, string>>` 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","_attachments":{},"homepage":"https://github.com/sindresorhus/remote-git-tags#readme","bugs":{"url":"https://github.com/sindresorhus/remote-git-tags/issues"},"license":"MIT"}