Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevemao/git-all-tags
https://github.com/stevemao/git-all-tags
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stevemao/git-all-tags
- Owner: stevemao
- Created: 2016-01-30T03:27:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-30T03:33:46.000Z (almost 9 years ago)
- Last Synced: 2024-12-07T20:25:52.472Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
> 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
```sh
$ npm install --save git-all-tags
```## Usage
```js
var gitAllTags = require('git-all-tags');gitAllTags(function(err, tag) {
console.log(tag);
//=> [ 'v2.0.0', 'v1.0.0' ]
});
``````sh
$ npm install --global git-all-tags
$ git-all-tags
v2.0.0
v1.0.0
```## License
MIT © [Steve Mao](https://github.com/stevemao)
[npm-image]: https://badge.fury.io/js/git-all-tags.svg
[npm-url]: https://npmjs.org/package/git-all-tags
[travis-image]: https://travis-ci.org/stevemao/git-all-tags.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/git-all-tags
[daviddm-image]: https://david-dm.org/stevemao/git-all-tags.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/stevemao/git-all-tags
[coveralls-image]: https://coveralls.io/repos/stevemao/git-all-tags/badge.svg
[coveralls-url]: https://coveralls.io/r/stevemao/git-all-tags