🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

git-version-tag

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-version-tag

Fetch the version tags from a repo

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Git Version Tag

NPM

This package allows you fetch all or just the latest version of any git repo, independent of whether it's hosted on Github, Gitlab or Bitbucket and their respective Enterprise versions.

It does not handle authentication but instead assumes that this is used on repos that the user already has access to and has logged in using system-side key managers.

Usage

const remoteUri = 'https://github.com/JoernBerkefeld/eslint-config-ssjs';

// no params
response = await gitVersionTag(remoteUri);
console.log('Array of found tags: ', response);
// example:
// ['v1.1.1', 'v1.1.0','v1.0.5', 'v1.0.4','v1.0.3', 'v1.0.2','v1.0.1']
]


// getLatest=true
response = await gitVersionTag(remoteUri, {getLatest: true,
});]
console.log('latest version: ', response);
// example:
// 'v1.1.1'

Options

getLatest

Type: Boolean Description: limits the result set to the highest non-pre-release version.

License

See LICENSE

Keywords

latest

FAQs

Package last updated on 17 Aug 2020

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