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
- Host: GitHub
- URL: https://github.com/codeskyblue/gitver
- Owner: codeskyblue
- License: mit
- Created: 2016-04-08T05:07:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-11T12:09:01.000Z (about 10 years ago)
- Last Synced: 2025-11-06T09:20:34.010Z (7 months ago)
- Language: CoffeeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)