muxml-cli
Streaming XML parser and formatter
Thin wrapper around muxml
to make it a CLI app.
Also available as a gulp / Grunt plugin.
Install
$ npm install --save muxml-cli
CLI
$ muxml-cli --help Usage muxml-cli [input] Options --help --strict use sax strict mode --pretty prettify --strip-comments strip XML comments --strip-cdata strip CDATA tags --strip-doctype strip XML DOCTYPE --strip-instruction strip XML instruction --strip-attributes strip attributes from tags --filter tag name to filter --input input file --output output file Examples $ muxml-cli '<a id="42"><span>foo</span></a>' --no-pretty > output.xml $ muxml-cli --input=input.xml --no-pretty --output=output.xml $ echo '<a id="42"><span>foo</span></a>' | muxml-cli --no-pretty > output.xml
Related
- muxml | API for this module
- gulp-muxml | this module as a
gulp
plugin - grunt-muxml | this module as a
Grunt
plugin
License
MIT © t1st3