# remote-git-tags

> Get tags from a remote Git repo

Latest version **4.0.0** (published 2021-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install remote-git-tags
pnpm add remote-git-tags
yarn add remote-git-tags
bun add remote-git-tags
```

## Health

**Score 43/100 (D)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-08-09 |
| First published | 2014-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/remote-git-tags) |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | git, tags, tag, remote, ls-remote, ls, repo, repository, commit, sha, url |

## Links

- npm: https://www.npmjs.com/package/remote-git-tags
- Repository: https://github.com/sindresorhus/remote-git-tags
- Homepage: https://github.com/sindresorhus/remote-git-tags#readme
- Issues: https://github.com/sindresorhus/remote-git-tags/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/remote-git-tags

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2021-08-09
- 3.0.0 — 2019-06-14
- 2.0.0 — 2017-05-11
- 1.0.0 — 2014-09-20

## README

# remote-git-tags

> Get tags from a remote Git repo

## Install

```
$ npm install remote-git-tags
```

The `git` binary must be installed and in your [PATH](https://medium.com/@jalendport/what-exactly-is-your-shell-path-2f076f02deb4).

## Usage

```js
import remoteGitTags from 'remote-git-tags';

console.log(await remoteGitTags('https://github.com/sindresorhus/remote-git-tags'));
//=> Map {'v1.0.0' => '69e308412e2a5cffa692951f0274091ef23e0e32', …}
```

## API

### remoteGitTags(repoUrl)

Returns a `Promise<Map<string, string>>` with the Git tags as keys and their commit SHA as values.

#### repoUrl

Type: `string`

The URL to the Git repo.

---
_Source: https://npm.io/package/remote-git-tags · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
