remote-git-tags

Get tags from a remote Git repo

MIT 4 个版本
安装
npm install remote-git-tags
yarn add remote-git-tags
pnpm add remote-git-tags
bun add remote-git-tags
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.

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.

版本列表
4.0.0 2021-08-09
3.0.0 2019-06-14
2.0.0 2017-05-11
1.0.0 2014-09-20