Comparing version 0.0.1 to 0.0.2
{ | ||
"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"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3139
7
29
36
1