diffable-html
JSON →Opinionated HTML formatter that normalizes HTML for readable diffs, especially in snapshot testing. Version 6.0.1 is current, with infrequent major releases for breaking default changes. It indents every level with 2 spaces, aligns attributes, places every opening/closing tag on its own line, and trims text nodes. Unlike js-beautifier, it ensures inner content of each tag is on its own line and closing brackets are on their own line, making diffs clearer. Primarily used with Jest snapshot testing for Vue.js components.
Traffic · last 30 days stale · no recent hits
total hits 12
actors 4 distinct systems
last hit 21d ago human
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France · 🇬🇧 United Kingdom
Resources
packagediffable-html ↗