# cordova-plugin-xml

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

Latest version **0.1.3** (published 2019-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-xml
pnpm add cordova-plugin-xml
yarn add cordova-plugin-xml
bun add cordova-plugin-xml
```

Provides the command `cordova-plugin-xml`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2019-03-15 |
| First published | 2017-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Martin Reinhardt |
| Maintainers | hypery2k |
| Keywords | plugin.xml, edit, config, cordova, ionic, widget, id, description, author, cli |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-xml
- Repository: https://github.com/hypery2k/cordova-plugin-xml
- Homepage: https://github.com/hypery2k/cordova-plugin-xml#readme
- Issues: https://github.com/hypery2k/cordova-plugin-xml/issues
- npm.io page: https://npm.io/package/cordova-plugin-xml

## Dependencies (2)

- [meow](https://npm.io/package/meow.md) ^3.7.0
- [xmlpoke](https://npm.io/package/xmlpoke.md) ^0.1.16

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2019-03-15
- 0.1.2 — 2017-09-28
- 0.1.1 — 2017-07-14
- 0.1.0 — 2017-07-14

## README

# cordova-plugin-xml

[![Build Status](https://travis-ci.org/hypery2k/cordova-plugin-xml.svg?branch=master)](https://travis-ci.org/hypery2k/cordova-plugin-xml)

Edit cordova plugin.xml from the command line or via API. Based on this [node package](https://github.com/mikeobrien/node-xmlpoke).

[![NPM](https://nodei.co/npm/cordova-plugin-xml.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/cordova-plugin-xml/)

## 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](https://github.com/mikeobrien/node-xmlpoke) for more info.

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

---
_Source: https://npm.io/package/cordova-plugin-xml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
