2.0.0 • Published 5 years ago

muxml-cli v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

2.0.0

5 years ago

1.0.0

6 years ago

0.1.6

7 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago