An open API service indexing awesome lists of open source software.

https://github.com/codeskyblue/gitver

Auto generate version number by git log and tag
https://github.com/codeskyblue/gitver

Last synced: about 1 month ago
JSON representation

Auto generate version number by git log and tag

Awesome Lists containing this project

README

          

# gitver
Auto generate version number by git log and tag

This is a Nodejs library.

## Usage

Command line

```
$ gitver version
# expect output 0.0.1.dev
```

库的使用

```
var gv = require('git-tag-version')

gv.current(function(version){
console.log(version) // expect: 0.0.1
})
```

If recent `git tag` is v0.0.2, then function will return 0.0.2 or 0.0.3.dev

## LICENSE
Under [MIT](LICENSE)