flightstats / git-tag

simply command 'git tag' wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-tag

NPM Version NPM Downloads Build Status

Install

npm install git-tag

Usage

var gitTag = require('git-tag')({localOnly:true})

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

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

// get a latest tag
gitTag.latest(function(res){
	console.log(res) // >> 0.0.2015
})

// get all tags
gitTag.all(function(res){
	console.log(res) // >> ['0.0.2015']
})

Test

npm test

License

MIT

About

simply command 'git tag' wrapper


Languages

Language:JavaScript 100.0%