Pathinator
JSON →Pathinator is an SVG path builder and minifier for Node.js and the browser. Version 0.4.3 provides a chainable API to programmatically construct SVG path data via commands like moveTo, lineTo, cubic/quadratic curves, and arc, then export to optimized path strings with optional compression. It also includes an optimizeSvgPaths function to batch-optimize all path and polygon/polyline data in an SVG string or DOM Document. The library is lightweight, has no dependencies, and works in both ESM and older JS environments. Compared to alternatives like svg.js or Snap.svg, Pathinator focuses specifically on path data manipulation and minification rather than full SVG rendering or DOM manipulation.
Resources
packagepathinator ↗