blacklake-git-semver-tags
v1.0.0
Published
Get all git semver tags of your repository in reverse chronological order
Downloads
9
Maintainers
Readme
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-tagsUsage
var gitSemverTags = require('git-semver-tags');
// gitSemverTags([options,] callback)
gitSemverTags(function(err, tags) {
console.log(tags);
//=> [ 'v2.0.0', 'v1.0.0' ]
});$ npm install --global git-semver-tags
$ git-semver-tags
v2.0.0
v1.0.0Options
opts.lernaTags: extract lerna style tags ([email protected]) from the git history, rather thanv1.0.0format.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
