remote-git-tags
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/remote-git-tags package

4.0.0 • Public • Published

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.

Usage

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    11
  • 3.0.0
    363,420
  • 2.0.0
    13,637
  • 1.0.0
    0

Package Sidebar

Install

npm i remote-git-tags

Weekly Downloads

377,068

Version

4.0.0

License

MIT

Unpacked Size

3.2 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus