JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 155
  • Score
    100M100P100Q84641F
  • License MIT

Pretty print XML on the command line.

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