pretty-xml

1.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pretty-xml

Weekly Downloads

18

Version

1.2.1

License

MIT

Last publish

Collaborators

  • sirreal