Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…
Turns an SVG path into an array of its shapes.
Older browsers might require a polyfill for String.prototype.trim.
$ npm install svg-path-shapes
var shapes = require('svg-path-shapes') shapes('M30 10 L35 15 M40 20 L45 25')// => ['M30 10 L35 15', 'M40 20 L45 25']
What happens when npm’s amazing community gets together to share with one another? Buy a ticket »
how? learn more