1.0.1 • Published 2 years ago

@wvbe/prettify-xml v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@wvbe/prettify-xml

This is a command-line utility that prettifies the XML coming in from your streamed input.

It is meant to make minified XML easier to read, for those of us who handle XML in a terminal some times.

Installation

To install Node package, run from anywhere:

npm i -g @wvbe/prettify-xml

Usage

Pipe your lines into this sucker like:

cat minified.xml | prettify-xml
curl http://rss.cnn.com/rss/edition.rss | prettify-xml
unzip -p my-word-file.docx word/document.xml | prettify-xml

Roadmap

  • Embellishing text data with quotes is optional
  • Respect @xml:space, optionally