🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

remote-git-tags

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-git-tags

Get tags from a remote Git repo

4.0.0
latest
Source
npm
Version published
Weekly downloads
229K
-6.04%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

git

FAQs

Package last updated on 09 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts