https://github.com/t1st3/muxml-cli
Streaming XML parser and formatter
https://github.com/t1st3/muxml-cli
cli formatter parser stream xml
Last synced: 5 months ago
JSON representation
Streaming XML parser and formatter
- Host: GitHub
- URL: https://github.com/t1st3/muxml-cli
- Owner: t1st3
- License: mit
- Created: 2016-07-21T14:13:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T09:19:13.000Z (about 6 years ago)
- Last Synced: 2025-11-28T12:08:31.754Z (7 months ago)
- Topics: cli, formatter, parser, stream, xml
- Language: JavaScript
- Size: 90.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# muxml-cli [](https://travis-ci.org/t1st3/muxml-cli) [](https://codecov.io/gh/t1st3/muxml-cli?branch=master)
> Streaming XML parser and formatter
Thin wrapper around [`muxml`](https://github.com/t1st3/muxml) to make it a [CLI](https://en.wikipedia.org/wiki/Command-line_interface) app.
Also available as a [gulp](https://github.com/t1st3/gulp-muxml) / [Grunt](https://github.com/t1st3/grunt-muxml) plugin.
## Install
```
$ npm install --save muxml-cli
```
## CLI
```console
$ 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 'foo' --no-pretty > output.xml
$ muxml-cli --input=input.xml --no-pretty --output=output.xml
$ echo 'foo' | muxml-cli --no-pretty > output.xml
```
## Related
* [muxml](https://github.com/t1st3/muxml) | API for this module
* [gulp-muxml](https://github.com/t1st3/gulp-muxml) | this module as a [`gulp`](http://gulpjs.com/) plugin
* [grunt-muxml](https://github.com/t1st3/grunt-muxml) | this module as a [`Grunt`](http://gruntjs.com/) plugin
## License
MIT © [t1st3](https://t1st3.com)