npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

cordova-set-version

7.0.4 • Public • Published

cordova-set-version

NPM

ISC License npm version npm downloads travis codecov maintainability dependencies dependency status devDependencies semantic-release greenkeeper

Features

  • Writes version and buildNumber to Cordova config.xml
  • Can read version from local package.json
  • Has CLI

Install

$ npm install cordova-set-version

Usage

const cordovaSetVersion = require('cordova-set-version');
 
cordovaSetVersion(); // reads version from package.json
cordovaSetVersion('2.4.9');
cordovaSetVersion('./config.alt.xml', '2.4.9');
cordovaSetVersion('./config.alt.xml', 86);
cordovaSetVersion('./config.alt.xml', '2.4.9', 86)
    .catch(error => { ... });

API

cordovaSetVersion([configPath], [version], [buildNumber]): Promise

  • configPath (string) - path to your config.xml
  • version (string) - version to be written
  • buildNumber (number) - build number to be written

CLI

cordova-set-version [-v|--version <version>] [-b|--build-number <build-number>] [config.xml]

Options:

  • -v/--version - version to set
  • -b/--build-number - build number to set
  • --help - display help

Examples

$ cordova-set-version
$ cordova-set-version -v 2.4.9
$ cordova-set-version -b 86
$ cordova-set-version -v 2.4.9 -b 86

install

npm i cordova-set-version

Downloadsweekly downloads

551

version

7.0.4

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability