git-all-tags

1.0.0 • Public • Published

NPM version Build Status Dependency Status Coverage Status

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

Package Sidebar

Install

npm i git-all-tags

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • stevemao