{"library":"svg-path-parser","type":"library","category":null,"description":"svg-path-parser is a JavaScript library designed for parsing SVG `d` attribute path strings into a structured array of command objects. It is currently at version 1.1.0, with its last major update in 2020, suggesting it is in a maintenance phase rather than active development. The library provides a programmatic way to interpret complex SVG path data, converting shorthand notations (e.g., multiple consecutive `L` commands) into individual, distinct command objects. A key differentiator is its ability to convert all path commands to their absolute coordinate equivalents using the `makeAbsolute` function, which is useful for simplifying subsequent geometric calculations or transformations. It leverages a PEG.js grammar for robust parsing and is primarily designed for Node.js environments, shipping as a CommonJS module.","language":"javascript","status":"maintenance","version":"1.1.0","tags":["javascript","svg","path","d","attribute","parser","lines","drawing"],"last_verified":"Wed May 27","install":[{"cmd":"npm install svg-path-parser","imports":["const parseSVG = require('svg-path-parser');","const { parseSVG } = require('svg-path-parser');","const { makeAbsolute } = require('svg-path-parser');"]},{"cmd":"yarn add svg-path-parser","imports":[]},{"cmd":"pnpm add svg-path-parser","imports":[]}],"homepage":null,"github":"https://github.com/hughsk/svg-path-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/svg-path-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-path-parser/compatibility"}}