x2js-cli

Convert an XML input to a JSON output, using xml2js

Usage no npm install needed!

<script type="module">
  import x2jsCli from 'https://cdn.skypack.dev/x2js-cli';
</script>

README

Reads xml and writes to standard output.

Usage : x2js [options] FILE|-

Options:

--help, -h Show help

--indents, -i Indents. Num of spaces [default: 2]

--encoding, -e encoding if using stdin [default: "utf8"]

--noroot, -n strip root elem in output