Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fxsvg

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fxsvg

Functional SVG Handling Library

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
98
decreased by-30.99%
Maintainers
3
Weekly downloads
 
Created
Source

FxSVG

Functional SVG Handling Library

API

els

svg 문자열을 받아 svg 객체를 담은 배열을 생성합니다.

console.log(els('<rect x="0" y="0" width="10" height="10"></rect>'));
// [rect]
console.log(
  els(
    '<rect x="0" y="0" width="10" height="10"></rect><circle cx="1" cy="1" r="5"></circle>'
  )
);
// [rect, circle]

el

svg 문자열을 받아 svg 객체를 생성합니다.

console.log(els('<rect x="0" y="0" width="10" height="10"></rect>'));
// rect
console.log(
  els(
    '<rect x="0" y="0" width="10" height="10"></rect><circle cx="1" cy="1" r="5"></circle>'
  )
);
// rect

Keywords

FAQs

Package last updated on 19 May 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