Gathering detailed insights and metrics for kld-path-parser
Gathering detailed insights and metrics for kld-path-parser
Gathering detailed insights and metrics for kld-path-parser
Gathering detailed insights and metrics for kld-path-parser
npm install kld-path-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-3-Clause License
3 Stars
53 Commits
1 Forks
1 Watchers
2 Branches
2 Contributors
Updated on Mar 28, 2025
Latest Version
0.2.1
Package Id
kld-path-parser@0.2.1
Size
22.87 kB
NPM Version
6.9.0
Node Version
10.15.3
Published on
May 09, 2019
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
27
An event-driven SVG path data parser.
npm install kld-path-parser
The following sections indicate how you can import the code for use in various environments.
1import {PathParser, SampleHandler} = require("kld-path-parser");
1import {PathParser, SampleHandler} from './node_modules/kld-path-parser/dist/index-esm.js';
1<script src="./node_modules/kld-path-parser/dist/index-umd.js"></script> 2<script> 3 var PathParser = KldPathParser.PathParser; 4 var SampleHandler = KldPathParser.SampleHandler; 5</script>
1import {AffineShapes, Shapes, Intersection} from "kld-path-parser";
1import {PathParser, SampleHandler} from "kld-path-parser"; 2 3const parser = new PathParser(); 4const handler = new SampleHandler()); 5const pathData = "M40,70 Q50,150 90,90 T135,130 L160,70 C180,180 280,55 280,140 S400,110 290,100"; 6 7parser.setHandler(handler); 8parser.parseData(pathData); 9 10console.log(handler.logs.join("\n"));
movetoAbs(40,70)
curvetoQuadraticAbs(50,150,90,90)
curvetoQuadraticSmoothAbs(135,130)
linetoAbs(160,70)
curvetoCubicAbs(180,180,280,55,280,140)
curvetoCubicSmoothAbs(400,110,290,100)
When creating your own event handler, you will need to define methods for each event you wish to listen for. Below is a list of all events (method names) that may be fired during a parse.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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