1. git-semver-tags
Get all git semver tags of your repository in reverse chronological order
git-semver-tags
Package: git-semver-tags
Created by: conventional-changelog
Last modified: Mon, 11 Sep 2023 00:02:49 GMT
Version: 7.0.1
License: MIT
Downloads: 9,453,690
Repository: https://github.com/conventional-changelog/conventional-changelog

Install

npm install git-semver-tags
yarn add git-semver-tags

NPM version Build Status Dependency Status Coverage Status

Get all git semver tags of your repository in reverse chronological order

Note: since lightweight tags do not store date information, the date of a tag is the date of the commit that is tagged on. If two tags on one commit, the order is not guaranteed.

Install

 $ npm install --save git-semver-tags

Usage

 var gitSemverTags = require('git-semver-tags');

// gitSemverTags([options])

const tags = await gitSemverTags();

console.log(tags);
//=> [ 'v2.0.0', 'v1.0.0' ]
 $ npm install --global git-semver-tags
$ git-semver-tags
v2.0.0
v1.0.0

Options

  • opts.lernaTags: extract lerna style tags ([email protected]) from the
    git history, rather than v1.0.0 format.
  • opts.package: what package should lerna style tags be listed for, e.g.,
    foo-package.
  • opts.tagPrefix: specify a prefix for the git tag to be ignored from the semver checks

License

MIT © Steve Mao

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin