Gathering detailed insights and metrics for tarpaulin
Gathering detailed insights and metrics for tarpaulin
Gathering detailed insights and metrics for tarpaulin
Gathering detailed insights and metrics for tarpaulin
npm install tarpaulin
Typescript
Module System
Node Version
NPM Version
73.8
Supply Chain
85.1
Quality
75.6
Maintenance
100
Vulnerability
100
License
TypeScript (99.76%)
JavaScript (0.24%)
Total Downloads
1,924
Last Day
2
Last Week
2
Last Month
15
Last Year
142
92 Commits
2 Watching
2 Branches
1 Contributors
Latest Version
1.2.2
Package Id
tarpaulin@1.2.2
Unpacked Size
55.05 kB
Size
12.47 kB
File Count
73
NPM Version
6.9.0
Node Version
12.1.0
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
100%
2
Compared to previous week
Last month
275%
15
Compared to previous month
Last year
-39.8%
142
Compared to previous year
5
A minimal toolset aimed at mathematical drawing on canvas or svg
Install with npm:
1$ npm install --save tarpaulin
Install with yarn:
1$ yarn add tarpaulin
1import Tarpaulin, { Color } from "tarpaulin" 2 3// Set appearance 4const size = 600 5const xMin = -50 6const xMax = 50 7const yMin = -50 8const yMax = 50 9 10// Create a canvas tarp 11Tarpaulin.createCanvas({ size, xMin, xMax, yMin, yMax }) 12 13// Or create an SVG tarp 14//Tarpaulin.createSvg({ size, xMin, xMax, yMin, yMax }) 15 16// START DRAWING 17 18Tarpaulin.drawGrid() 19Tarpaulin.drawAxes() 20 21// Draw filled & stroked shapes 22Tarpaulin.drawCircle([-25, 25], 15, { fill: Color.Red, stroke: Color.Black }) 23Tarpaulin.drawRect([10, 40], 30, 30, { fill: Color.Blue, stroke: Color.Black }) 24Tarpaulin.drawPath([[-25, -10], [-42.32, -40], [-7.68, -40]], { fill: Color.Yellow, stroke: Color.Black }) 25 26// Draw filled-only/stroked-only shapes 27Tarpaulin.drawCircle([15, -15], 5, { fill: Color.Green }) 28Tarpaulin.drawRect([30, -10], 10, 10) 29Tarpaulin.drawPath([[15, -30], [9.226, -40], [20.773, -40]], { stroke: Color.Black, closed: true }) 30Tarpaulin.drawPath([[30, -30], [40, -30], [35, -30], [35, -40]], { stroke: Color.Black, strokeWidth: 5 })
See more usage examples in examples
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/25 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
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-16
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