Package Exports
- parse-svg-path
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-svg-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
parse-svg-path
A minimal svg path parser. For the delux model see hughsk/svg-path-parser or for the streaming model see nfroidure/SVGPathData.
Installation
- packin:
packin add jkroso/parse-svg-path - component:
component install jkroso/parse-svg-path - npm:
npm install parse-svg-path
then in your app:
var parse = require('parse-svg-path')API
parse(string)
parse an svg path data string. Generates an Array
of commands where each command is an Array of the
form [command, arg1, arg2, ...]
parse('m1 2 3 4') // => [['m',1,2],['l',3,4]]Running the tests
Just run make and navigate your browser to the test directory.