3.0.4 • Published 5 years ago

versionup v3.0.4

Weekly downloads
32
License
MIT
Repository
github
Last release
5 years ago

versionup

Build Status npm Version JS Standard

Increment version number in package.json (or bower.json)

Installation

npm install versionup --save-dev

Usage

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

Version number will be incremented. (eg. {"version" : "1.0.0} -> {"version" : "1.0.1})

#!/usr/bin/env node

/**
 * This is an example to use versionup.
 */

'use strict'

const versionup = require('versionup')

// Increment version number in package.json (or bower.json).
versionup({
  // Options
}).then(() => {
  /* ... */
})

Options

KeyDefaultDescription
pathprocess.cwd()Project root path or json file path to work with
level'patch'Level to change. "major", "minor", or "patch".
amount1Amount to increment.

Using with CLI

Install as a global module.

$ npm install versionup -g

Then,

$ versionup -p "~/my_project" -l "micro" -a "1"

License

This software is released under the MIT License.

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

6 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.3.0

9 years ago

1.2.3

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.10

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago