git-tag
simply command 'git tag' wrapper
Last updated 2 years ago by cutsin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install git-tag 
SYNC missed versions from official npm registry.

git-tag

NPM Version NPM Downloads Build Status

Install

npm install git-tag

Usage

var gitTag = require('git-tag')({localOnly:true,dir:'/path/to/git/.git'})

Create a tag

gitTag.create('0.0.2015', 'just a message', function(res){
	console.log(res) // >> 0.0.2015
})
gitTag.create('0.0.2015', 'just a message', function(err, res){
	console.log(err, res) // >> null, 0.0.2015
})

Remove a tag

gitTag.remove('0.0.2015', function(res){
	console.log(res) // >> 0.0.2015
})
gitTag.remove('0.0.2015', function(err, res){
	console.log(err, res) // >> null, 0.0.2015
})

Get a latest tag

gitTag.latest(function(res){
	console.log(res) // >> 0.0.2015
})
gitTag.latest(function(err, res){
	console.log(err, res) // >> null, 0.0.2015
})

Get all tags

gitTag.all(function(res){
	console.log(res) // >> ['0.0.2015']
})
gitTag.all("--merged", function(err, res){
	console.log(err, res) // >> null, ['0.0.2015']
})

Test

npm test

License

MIT

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

9 Versions

  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 1
This Week 2
This Month 33
Last Day 0
Last Week 9
Last Month 10
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |