
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
cordova-xml
Advanced tools
Edit cordova config.xml from the command line or via API. Uses the awesome node-xmlpoke.
npm install --save-dev cordova-xml
or global:
npm install -g cordova-xml
cordova-xml <action> <args>
cordova-xml setId com.example.myid --config /path/to/config.xml
cordova-xml setVersion 1.2.3
cordova-xml setId com.example.myid
cordova-xml setAndroidVersion 1.4.5
cordova-xml setIosVersion 1.1.2
cordova-xml setName TestApp
cordova-xml setDescription 'my app description'
cordova-xml setAuthorEmail 'email@example.com'
cordova-xml setAuthorName 'Author Authsson'
cordova-xml setAuthorWebsite 'http://example.com'
cordova-xml setXml "/w:widget/w:platform[@name='android']" '<test>hey</test>'
require('cordova-xml')().setId('com.example.myid')
require('cordova-xml')('/path/to/config.xml').setId('com.example.myid')
const cordovaXml = require('cordova-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
FAQs
Edit cordova config.xml from the command line or via API
The npm package cordova-xml receives a total of 4 weekly downloads. As such, cordova-xml popularity was classified as not popular.
We found that cordova-xml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.