Package Exports
- pretty-xml
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pretty-xml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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