An open API service indexing awesome lists of open source software.

https://github.com/wvbe/prettify-xml

Prettifies a STDIN XML string to STDOUT
https://github.com/wvbe/prettify-xml

cli formatter prettify terminal xml

Last synced: 3 months ago
JSON representation

Prettifies a STDIN XML string to STDOUT

Awesome Lists containing this project

README

          

# @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:

```sh
npm i -g @wvbe/prettify-xml
```

## Usage

Pipe your lines into this sucker like:

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

## Roadmap

- [ ] Embellishing text data with quotes is optional
- [ ] Respect `@xml:space`, optionally