Get tags from a remote Git repo
$ npm install remote-git-tags
The git
binary must be installed and in your PATH.
import remoteGitTags from 'remote-git-tags';
console.log(await remoteGitTags('https://github.com/sindresorhus/remote-git-tags'));
//=> Map {'v1.0.0' => '69e308412e2a5cffa692951f0274091ef23e0e32', …}
Returns a Promise<Map<string, string>>
with the Git tags as keys and their commit SHA as values.
Type: string
The URL to the Git repo.