Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cordova-plugin-xml

hypery2k1.5kMIT0.1.3

Edit cordova plugin.xml from the command line or via API

plugin.xml, edit, config, cordova, ionic, widget, id, description, author, cli

readme

cordova-plugin-xml

Build Status

Edit cordova plugin.xml from the command line or via API. Based on this node package.

NPM

Install

npm install --save-dev cordova-plugin-xml

or global:

npm install -g cordova-plugin-xml

CLI Usage

cordova-plugin-xml <action> <args>

CLI examples

cordova-plugin-xml setVersion 1.2.3

lib examples

require('cordova-plugin-xml')().setVersion('123')
require('cordova-plugin-xml')('/path/to/config.xml').setVersion('123')

Use xmlpoke directly

const cordovaXml = require('cordova-plugin-xml')();
cordovaXml.withPoke(xml => xml.add("/w:widget/w:platform[@name='android']/something", xml.XmlString('<text>hey</text>')));

See node-xmlpoke for more info.

https://github.com/ragingwind/cordova-config-cli - Inspiration. However this one mutates the XML doc more

changelog

0.1.3 (2019-03-15)

Features

  • Security: Adding lock-file (8384727)

0.1.2 (2017-09-28)

Bug Fixes

  • namespace-error: Remove not needed android namespace (4cd7c63), closes #1

0.1.1 (2017-07-14)

Bug Fixes

  • version-error: Resolve versioning error (a5a1947)

0.2.0 (2017-07-14)

Features

  • version: Add support for setting plugin version (9d7a86e)

1.1.0 (2016-08-18)

1.0.0 (2016-08-18)