muxml-cli

2.0.0 • Public • Published

muxml-cli Build Status Travis Coverage Status

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

License

MIT © t1st3

Package Sidebar

Install

npm i muxml-cli

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

5.45 kB

Total Files

4

Last publish

Collaborators

  • t1st3