JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1555
  • Score
    100M100P100Q108585F
  • License MIT

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

Package Exports

  • versionup

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (versionup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

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.