svg-path-shapes
v0.0.2
Published
Turns an SVG path into an array of its shapes.
Readme
svg-path-shapes
Older browsers might require a polyfill for String.prototype.trim.
Install
$ npm install svg-path-shapesExample
var shapes = require('svg-path-shapes')
shapes('M30 10 L35 15 M40 20 L45 25')
// => ['M30 10 L35 15', 'M40 20 L45 25']

