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 - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

src/el.js

2

package.json
{
"name": "fxsvg",
"version": "0.0.1",
"version": "0.0.2",
"description": "Functional SVG Handling Library",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

# FxSVG
Functional SVG Handling Library
## API
### els
svg 문자열을 받아 svg 객체를 담은 배열을 생성합니다.
```javascript
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 객체를 생성합니다.
```javascript
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
```
export { getSVG, setSVG } from "./getSetSVG.js";
export { els } from "./els.js";
export { el } from "./el.js";
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