parse-svg-path
svg path parser
Last updated 8 years ago by jkroso .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install parse-svg-path 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.2                                ...           latest (8 years ago)

3 Versions

  • 0.1.0                                ...           11 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |