taggit

2.0.3 • Public • Published

taggit

Build Status Code Climate Code Coverage npm Version

Create a tag on remote git with version number in package.json (or bower.json)

Installation

npm install taggit --save-dev

Usage

Call taggit() at project root path where package.json exists.

'use strict'
 
let basedir = __dirname;
process.chdir(basedir) //Move to project root.
 
const taggit = require('taggit')
 
// Create remote git tag named with package.json version. (eg. v1.0.0)
taggit({
    // Options
}, (err) => {
    /*...*/
})
 

Options

Key Default Description
tag Name of tag. By default, name is resolved form package.json.
cwd Working directory path.

Using with CLI

Install as a global module.

$ npm install taggit -g

Then,

$ taggit -t "v0.0.5"

License

This software is released under the MIT License.

/taggit/

    Package Sidebar

    Install

    npm i taggit

    Weekly Downloads

    324

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    15.2 kB

    Total Files

    27

    Last publish

    Collaborators

    • okunishinishi