{"library":"svg-parser","type":"library","category":null,"description":"svg-parser is a JavaScript library designed for converting SVG (Scalable Vector Graphics) document strings or fragments into a HAST (Hypertext Abstract Syntax Tree) compliant JavaScript object. This transformation provides a highly structured, JSON-friendly representation of the SVG, enabling programmatic manipulation, analysis, or further transformation within the unified syntax-tree ecosystem. The current stable version, 2.0.4, was last published in early 2020, indicating a maintenance-focused development cycle. It stands out by integrating directly with the HAST specification, making it a suitable choice for projects that already leverage unified or rehype for content processing, offering a consistent AST format across various document types like HTML and SVG. It boasts zero runtime dependencies.","language":"javascript","status":"maintenance","version":"2.0.4","tags":["javascript","SVG","parser","JSON","object"],"last_verified":"Wed May 27","install":[{"cmd":"npm install svg-parser","imports":["import { parse } from 'svg-parser'"]},{"cmd":"yarn add svg-parser","imports":[]},{"cmd":"pnpm add svg-parser","imports":[]}],"homepage":null,"github":"https://github.com/Rich-Harris/svg-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/svg-parser","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/svg-parser/compatibility"}}