JSPM

remote-git-tags

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 296532
  • Score
    100M100P100Q175159F
  • License MIT

Get tags from a remote Git repo

Package Exports

  • remote-git-tags

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remote-git-tags) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

remote-git-tags Build Status

Get tags from a remote Git repo

Install

$ npm install remote-git-tags

The git binary must be installed and in your PATH.

Usage

const remoteGitTags = require('remote-git-tags');

(async () => {
    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

URL to the Git repo.