Socket
Socket
Sign inDemoInstall

git-tag

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-tag

simply command 'git tag' wrapper


Version published
Weekly downloads
594
increased by50.38%
Maintainers
1
Install size
60.1 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 23 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc