
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
git-tags-remote
Advanced tools
Get remote repository tags.
Inspired by remote-git-tags and node-git-tags. Allows any type of remote repository, including repositories accessed through SSH or private repositories. If git ls-remote --tags
works for you, so will this.
npm install git-tags-remote
Note that a git binary and command line interface is a prerequisite.
const gtr = require('git-tags-remote');
gtr.get('git@github.com:sh0ji/git-tags-remote.git').then(console.log);
// Map {
// 'v1.0.3' => 'a21074841b25eb4efe141ea4d7c2a1519c218b90',
// 'v1.0.2' => '0d50a47d20275ea6de9defd0518332dc0f96d195',
// 'v1.0.0' => 'f009ac7ee3ed9396700467ff13fd3085351a0cac'
// }
.get(gitUrl)
Returns a Promise<Map<string, string>>
with the Git tags as keys and their commit SHA as values, just like remote-git-tags.
gitUrl
must be a valid git url.
https://github.com/sh0ji/git-tags-remote.git
is valid but github.com/sh0ji/git-tags-remote
is not..latest(gitUrl)
Returns a promised tuple (Promise<[string, string]>
) with the latest git tag and commit SHA value.
['v1.0.0-rc.2', '8e048a0fd9cb668366eef550be445ac761efd667']
FAQs
Get remote repository tags.
The npm package git-tags-remote receives a total of 11,878 weekly downloads. As such, git-tags-remote popularity was classified as popular.
We found that git-tags-remote demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.