Socket
Socket
Sign inDemoInstall

vsvg-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

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
356
decreased by-12.96%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 05 Dec 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc