3.0.4 • Published 6 years ago
versionup v3.0.4
versionup
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
Key | Default | Description |
---|---|---|
path | process.cwd() | Project root path or json file path to work with |
level | 'patch' | Level to change. "major", "minor", or "patch". |
amount | 1 | Amount 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
6 years ago
3.0.3
6 years ago
3.0.2
7 years ago
2.1.2
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.3
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.3.0
10 years ago
1.2.3
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.10
10 years ago
1.0.8
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago