Installations
npm install @jamsch/normalize-svg-path
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
16.15.1
NPM Version
8.11.0
Score
71.5
Supply Chain
73.7
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
jkroso
Download Statistics
Total Downloads
734
Last Day
4
Last Week
5
Last Month
20
Last Year
109
GitHub Statistics
51 Stars
21 Commits
6 Forks
7 Watching
4 Branches
2 Contributors
Bundle Size
3.07 kB
Minified
1.57 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.2
Package Id
@jamsch/normalize-svg-path@1.1.2
Unpacked Size
12.75 kB
Size
4.04 kB
File Count
8
NPM Version
8.11.0
Node Version
16.15.1
Total Downloads
Cumulative downloads
Total Downloads
734
Last day
0%
4
Compared to previous day
Last week
-16.7%
5
Compared to previous week
Last month
900%
20
Compared to previous month
Last year
-28.8%
109
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
2
normalize-svg-path
Convert all segments in a path to curves. Usefull if you intend to animate one shape to another. By defining all segments with curves instead of a mix of lines, arcs, and curves tweening becomes much simpler. It could also help you rewrite your SVG code according to the principles of narcissistic design.
Usage
1import parse from 'parse-svg-path' 2import abs from 'abs-svg-path' 3import normalize from 'normalize-svg-path' 4 5const segments = normalize(abs(parse('M0 0L10 10A10 10 0 0 0 20 20Z')))
API
normalize(path)
Translate each segment in path
to an equivalent cubic bézier curve. The input path
must be absolute.
1normalize([['L',1,2]]) // => [['C',0,0,1,2,1,2]]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: license.md:0
- Info: FSF or OSI recognized license: MIT License: license.md:0
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/11 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 12 are checked with a SAST tool
Score
2.7
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More