Gathering detailed insights and metrics for cubic2quad
Gathering detailed insights and metrics for cubic2quad
Gathering detailed insights and metrics for cubic2quad
Gathering detailed insights and metrics for cubic2quad
npm install cubic2quad
Typescript
Module System
Node Version
NPM Version
99.6
Supply Chain
84.7
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
36 Stars
23 Commits
6 Forks
6 Watchers
1 Branches
3 Contributors
Updated on Jun 25, 2025
Latest Version
1.2.1
Package Id
cubic2quad@1.2.1
Size
7.46 kB
NPM Version
6.14.12
Node Version
14.16.1
Published on
May 20, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Aproximates cubic Bezier curves with quadratic ones.
This package was done to create TTF fonts (those support quadratic curves only). Generated curves have the same tangents angles at the ends. That's important to keep result visually smooth.
Logic is similar to one from FontForge.
Steps:
1var cubic2quad = require('cubic2quad'); 2// Input: (px1, py1, cx1, cy1, cx2, cy2, px2, py2, precision) 3var quads = cubic2quad(0, 0, 10, 9, 20, 11, 30, 0, 0.1);
It converts given quadratic curve to a number of quadratic ones. Result is:
[ P1x, P1y, C1x, C1y, P2x, P2y, C2x, C2y, ..., Cnx, Cny, P{n+1}x, P{n+1}y ]
where Pi are base points and Ci are control points.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
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