package
A command-line tool for validating XML files and converting between XML and JSON using Fast XML Parser
npm install fxp-cliGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A command-line tool for validating XML files and converting between XML and JSON using Fast XML Parser.
val), convert XML to JSON (x2j), JSON to XML (j2x).fxp x2j -f input1.xml input2.xml).en), Hindi (hi), Spanish (es), French (fr), Japanese (ja), Chinese (zh), Tamil (ta), Arabic (ar). No change in error messages from Fast XML Parser.-b), pretty printing (-p), stop nodes (-s), and more.--config or --lang-file for custom settings and languages.npm installRun commands with node index.js or fxp (if linked).
fxp val -f test/input1.xml --lang enOutput: test/input1.xml: Valid
fxp x2j -f test/input1.xml test/input2.xml -o test/output1.json test/output2.json -p --lang hiCreates: test/output1.json, test/output2.json
fxp j2x -f test/input1.json -o test/output.xml -p -e --lang ar-f <file...>: Input file(s) or - for stdin.-o <file...>: Output file(s).-b: Allow boolean attributes.-p: Pretty print (x2j: JSON, j2x: XML).-v: Parse values (x2j).-e: Suppress empty nodes (j2x).-s <tags>: Stop parsing at tags (comma-separated).--order: Tag ordering.--config <path>: Config file.--lang <code>: Language (e.g., en, hi, es, fr, ja, zh, ta, ar).--lang-file <path>: Custom language file.MIT
Estimated unpacked size across 24 packages.
2.7 MB
Includes dependencies.
3 direct · 2 outdated