1.2.1 • Published 8 years ago
pretty-xml v1.2.1
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>
Also allows minification by --minify
flag
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