A minimal svg path parser
JavaScript HTML Makefile
Switch branches/tags
Nothing to show
Clone or download
Latest commit 53d6884 Sep 3, 2016
Failed to load latest commit information.
test fix tests Dec 6, 2014
.gitignore Initial commit Nov 23, 2013
License Initial commit Nov 23, 2013
Makefile make Sep 3, 2016
Readme.md refer nfroidure/SVGPathData Nov 24, 2013
component.json Initial commit Nov 23, 2013
index.js tidy Sep 3, 2016
package.json Release 0.1.2 Sep 3, 2016



A minimal svg path parser. For the delux model see hughsk/svg-path-parser or for the streaming model see nfroidure/SVGPathData.


  • 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')



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.