{"library":"xast-util-to-xml","type":"library","category":null,"description":"xast-util-to-xml is a utility within the unified (syntax-tree) ecosystem designed to serialize an xast (XML Abstract Syntax Tree) into a string of XML. The current stable version is 4.0.0, which requires Node.js 16 or higher and is ESM-only. Releases tend to follow a feature-driven cadence, with new major versions introducing breaking changes, particularly around module systems and Node.js compatibility. Key differentiators include its adherence to the unist/xast specification, robust TypeScript type support, and granular options for controlling XML serialization, such as closing empty elements (`<foo/>` vs `<foo></foo>`), preferred attribute quotes, and handling of raw nodes. It is commonly used when converting parsed XML back into a string, either for final output or integration with other tools, offering fine-tuned control over the output format for tasks like minification or pretty-printing.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","unist","xast","xast-util","util","utility","xml","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install xast-util-to-xml","imports":["import { toXml } from 'xast-util-to-xml'","import { toXml } from 'https://esm.sh/xast-util-to-xml@4'","import type { Options } from 'xast-util-to-xml'"]},{"cmd":"yarn add xast-util-to-xml","imports":[]},{"cmd":"pnpm add xast-util-to-xml","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/xast-util-to-xml","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/xast-util-to-xml","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/xast-util-to-xml/compatibility"}}