Socket
Socket
Sign inDemoInstall

parse-svg-path

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parse-svg-path

svg path parser


Version published
Weekly downloads
814K
decreased by-6.08%
Maintainers
1
Install size
4.45 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 03 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc