Socket
Book a DemoInstallSign in
Socket

appx-manifest-version

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appx-manifest-version

Tool to upgrade the version of an Appx Manifest file.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

appx-manifest-version

Build Status Coverage Status Dependency Status Awesome Status

Tool used to increment the version number of an AppxManifest.xml file.

Installation

The package is published to npmjs.com. You can install with:

npm install -g appx-manifest-version

or

npm install appx-manifest-version --save-dev

Command Line

appx-version manifest_file_path

This will load the Appx manifest XML file manifest_file_path, locate the Package/Identity@Version field and increment the final numerical field after a period (.). Then it will overwrite the original manifest file with the updated content.

Code

You can call into the appx-manifest-version module from your own code as follows:

const appxVersion = require('appx-manifest-version');

// currentManifestString is a string containing the manifest contents
// returns a Promise
appxVersion.incrementVersion(currentManifestString)
  .then(data => {
    console.log(data.version);  // new version string
    console.log(data.manifest); // new manifest string
  })
  .catch(err => {
    console.error(err.status);  // error code
    console.error(err.details); // error details string
  });

// manifestPath is the path to the manifest XML file
// overwriteCurrent is true if the current XML file should be updated
// returns a Promise
appxVersion.incrementVersionFile(manifestPath,overwriteCurrent)
  .then(data => {
    console.log(data.version);  // new version string
    console.log(data.manifest); // new manifest string
  })
  .catch(err => {
    console.error(err.status);  // error code
    console.error(err.details); // error details string
  });

License

See the LICENSE file.

Keywords

appx

FAQs

Package last updated on 28 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts