Socket
Socket
Sign inDemoInstall

svg-parser

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-parser

Create a JSON-friendly object from an SVG string


Version published
Weekly downloads
7.1M
increased by5.8%
Maintainers
2
Weekly downloads
 
Created

What is svg-parser?

The svg-parser npm package is a utility for parsing SVG (Scalable Vector Graphics) files into a JavaScript object representation. This can be useful for manipulating or analyzing SVG content programmatically.

What are svg-parser's main functionalities?

Parsing SVG to JavaScript Object

This feature allows you to parse an SVG string into a JavaScript object. The resulting object can then be manipulated or analyzed as needed.

const { parse } = require('svg-parser');
const svg = '<svg><circle cx="50" cy="50" r="40" /></svg>';
const result = parse(svg);
console.log(result);

Other packages similar to svg-parser

Keywords

FAQs

Package last updated on 29 Feb 2020

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