$ npm install git-semver-tags
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.
# pnpm
pnpm add git-semver-tags
# yarn
yarn add git-semver-tags
# npm
npm i git-semver-tags
# Example
git-semver-tags
# Output:
# v2.0.0
# v1.0.0
# For more details
git-semver-tags --help
For JS API see @conventional-changelog/git-client.
MIT © Steve Mao
© 2010 - cnpmjs.org x YWFE | Home | YWFE