JSPM

remote-git-tags

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 283508
  • Score
    100M100P100Q188017F
  • License MIT

Get tags from a remote Git repo. Using only JS. No Git binary required.

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

Like git ls-remote, which doesn't require cloning the repo, but this is 100% JavaScript, meaning no dependency on the Git binary.

Really just some minor glue to @chrisdickinson's awesome work on reimplementing Git in JavaScript.

I'm using this successfully against GitHub repos, but the underlaying modules are not that actively maintained, so I wouldn't recommend using this for production critical code.

Install

$ npm install --save remote-git-tags

Usage

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

remoteGitTags('github.com/sindresorhus/remote-git-tags').then(tags => {
    console.log(tags);
    //=> Map {'v1.0.0' => '69e308412e2a5cffa692951f0274091ef23e0e32'}
});

API

remoteGitTags(url)

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

url

Type: string

Git repo URL.

License

MIT © Sindre Sorhus