Socket
Socket
Sign inDemoInstall

remote-git-tags

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    remote-git-tags

Get tags from a remote Git repo


Version published
Maintainers
1
Install size
4.21 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 14 Jun 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc