#xml #cli #mlem

app xml-pretty

XML prettifer binary using xmlem

6 releases

0.2.4 Dec 31, 2024
0.2.3 Nov 22, 2022
0.2.1 Jul 28, 2022
0.1.0 May 7, 2022

#216 in Encoding

Download history 2/week @ 2024-09-18 6/week @ 2024-09-25 2/week @ 2024-10-02 5/week @ 2024-12-11 66/week @ 2024-12-25 120/week @ 2025-01-01

191 downloads per month

Apache-2.0 OR MIT

12KB
149 lines

xml-pretty

Make your XML pretty. A frontend to the xmlem crate.

Features

  • It pretty prints your XML
  • Outputs to file, terminal or replaces original file
  • Handle entities properly and can enforce hex entities
  • Customisable indentation width and maximum file width
  • Ought not eat your comments even if they're outside the root element

Installation

cargo install --git https://github.com/xmlem/xml-pretty

Usage

Use xml-pretty --help to see the flags.

Simplest invocation is xml-pretty <file>.

License

This project is licensed under either of

at your option.

Dependencies

~7MB
~123K SLoC