# json2xml-cli

> A command line interface to the json2xml NPM package

Latest version **1.0.0-beta.1** (published 2016-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install json2xml-cli
pnpm add json2xml-cli
yarn add json2xml-cli
bun add json2xml-cli
```

Provides the command `json2xml`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.1 |
| Published | 2016-05-06 |
| First published | 2016-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brandon Sara |
| Maintainers | bsara |
| Keywords | json, xml, convert, converter, conversion |

## Links

- npm: https://www.npmjs.com/package/json2xml-cli
- Repository: https://github.com/bsara/json2xml-cli
- Homepage: https://github.com/bsara/json2xml-cli#readme
- Issues: https://github.com/bsara/json2xml-cli/issues
- npm.io page: https://npm.io/package/json2xml-cli

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [json2xml](https://npm.io/package/json2xml.md) ^0.1.2
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.2.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0-beta.1 (latest) — 2016-05-06

## README

# json2xml-cli

> A command line interface to the [json2xml][json2xml] NPM package.


## Install

```sh
$ npm install -g json2xml-cli
```


## Usage

```sh
$ json2xml -i file.json
$ json2xml -j '{ value0: 42, value1: "fish fingers and custard" }'
```

##### Options

```
-h, --help                        Output usage information
-V, --version                     Output the tool's version number
-i, --input-file <jsonFilePath>   Input JSON file path
-j, --json <json>                 Input JSON
-o, --out <outFilePath>           Output XML file path (default: 'out.xml')
-k, --key <attributesKey>         Key for reading attributes from JSON (see json2xml docs for more details)
--header                          Adds standard XML header to output file (see json2xml docs for more details)
```


## License

The MIT License (MIT)

Copyright (c) 2016 Brandon Sara (http://bsara.github.io/)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.



[json2xml]: https://www.npmjs.com/package/json2xml "json2xml NPM Package"

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