xml-but-prettier

JSON →
library 1.0.1 ·javascript maintenance
verified Apr 25, 2026

A minimal XML beautifier that formats XML documents by placing each tag and text node on its own line with proper indentation. The current stable version is 1.0.1, released in 2017 with no further updates since. It is a fork of xml-beautifier and offers a simple function signature with two options: indentor (custom indentation string) and textNodesOnSameLine (to compress text nodes onto the same line as their parent tags). It supports ESM imports and has no runtime dependencies.

total hits 33
actors 6 distinct systems
last hit 2d ago AhrefsBot
GPTBot
5
MetaBot
3
Script
1
Search engines
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇮🇳 India · 🇮🇹 Italy · 🇺🇦 Ukraine