{"library":"diffable-html","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"6.0.1","tags":["javascript","html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install diffable-html","imports":["import toDiffableHtml from 'diffable-html'","import formatHtml from 'diffable-html'","const toDiffableHtml = await import('diffable-html')"]},{"cmd":"yarn add diffable-html","imports":[]},{"cmd":"pnpm add diffable-html","imports":[]}],"homepage":"https://github.com/rayrutjes/diffable-html#readme","github":"https://github.com/rayrutjes/diffable-html","docs":null,"changelog":null,"pypi":null,"npm":"diffable-html","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}