Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

git-tag

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Issues
File Explorer

Advanced tools

git-tag

simply command 'git tag' wrapper

    0.2.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
462
decreased by-17.65%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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