git-all-tags
v1.0.0
Published
Get all git tags of your repository in reverse chronological order
Downloads
3
Maintainers
Readme
Get all git 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-all-tags
Usage
var gitAllTags = require('git-all-tags');
gitAllTags(function(err, tag) {
console.log(tag);
//=> [ 'v2.0.0', 'v1.0.0' ]
});
$ npm install --global git-all-tags
$ git-all-tags
v2.0.0
v1.0.0
License
MIT © Steve Mao