scale-svg-path
scale-svg-path scales the position of a parsed SVG path along its X/Y axes. It was extracted from Fontello’s wonderful svgpath toolkit.
Older browsers might require a polyfill for Array.prototype.map.
Install
$ npm install scale-svg-path
API
// sy = sx if undefined
Example
var parse =var scale =var serialize =var path =var x =var xy =// => 'M5 5 L7.5 7.5'// => 'M5 15 L7.5 22.5'