pretty-xml
Utility for pretty formatting XML
Just a simple wrapper around pretty data xml by vkiryukhin.
Usage
Basic
echo '<some-xml><some more="here">xml</some></some-xml>' | pretty-xml
Output:
<some-xml>
<some more="here">xml</some>
</some-xml>
--minify
flag
Also allows minification by echo '<some-xml> <some more="here">xml</some></some-xml>' | pretty-xml --minify
Output:
<some-xml><some more="here">xml</some></some-xml>
Installation
npm install -g pretty-xml