Socket
Socket
Sign inDemoInstall

vsvg-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vsvg-parser

A minimal implementation of a svg parser used in vsvg


Version published
Weekly downloads
326
decreased by-2.4%
Maintainers
1
Install size
15.7 kB
Created
Weekly downloads
 

Readme

Source

vsvg-parser ( virtual SVG parser ) Build Status

vsvg-parser is a small lib that allow you to parser svg's server side or client side. Its still in early devlopment so expect bug and file issues. Primarly used in vsvg.

Install

$ npm install vsvg-parser

You can also use it with your Browserify bundles.

Usage

var parser = require( 'vsvg-parser' );

console.log( parser.parse( '<svg><line /></svg>' ) );
/*

[ { tagName: 'svg',
    attributes: {},
    children: 
     [ { tagName: 'line',
         attributes: {},
         children: [],
         text: null,
         inside: 0,
         closed: true,
         position: [ 0, 0 ] } ],
    text: null,
    inside: -1,
    closed: true,
    position: [ 0 ] } ]

*/ 

Keywords

FAQs

Last updated on 03 May 2015

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