{"library":"xml-formatter","type":"library","category":null,"description":"xml-formatter is a lightweight library (v3.7.0) that converts XML strings into human-readable, pretty-printed format while respecting the xml:space attribute. It also supports minifying formatted XML back to compact strings. The library is zero-dependency, ships TypeScript definitions, and includes a browser bundle. It stands out by preserving xml:space, offering fine-grained formatting options (indentation, line separators, collapse content, filter, ignored paths), and throwing on parse failure by default. Release cadence is moderate; actively maintained. The package bundles for both Node (ESM) and browser (CJS/global). Differentiators: respects xml:space attribute, provides filter and ignoredPaths for selective formatting, and includes minify mode.","language":"javascript","status":"active","version":"3.7.0","tags":["javascript","xml","pretty","print","pretty-print","indent","parser","formatter","xml:space","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install xml-formatter","imports":["import xmlFormat from 'xml-formatter'","import xmlFormat, { minify } from 'xml-formatter'","import xmlFormat from 'xml-formatter'","import type { XmlFormatterOptions } from 'xml-formatter'"]},{"cmd":"yarn add xml-formatter","imports":[]},{"cmd":"pnpm add xml-formatter","imports":[]}],"homepage":"https://github.com/chrisbottin/xml-formatter#readme","github":"https://github.com/chrisbottin/xml-formatter","docs":null,"changelog":null,"pypi":null,"npm":"xml-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}