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
- Host: GitHub
- URL: https://github.com/wvbe/prettify-xml
- Owner: wvbe
- Created: 2022-09-29T11:23:49.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T11:20:52.000Z (almost 4 years ago)
- Last Synced: 2024-05-08T23:03:07.760Z (about 2 years ago)
- Topics: cli, formatter, prettify, terminal, xml
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@wvbe/prettify-xml
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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