Installations
npm install tarpaulin
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
12.1.0
NPM Version
6.9.0
Score
73.8
Supply Chain
85.1
Quality
75.6
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (99.76%)
JavaScript (0.24%)
Developer
mattor
Download Statistics
Total Downloads
1,924
Last Day
2
Last Week
2
Last Month
15
Last Year
142
GitHub Statistics
92 Commits
2 Watching
2 Branches
1 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,924
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
5
Tarpaulin
A minimal toolset aimed at mathematical drawing on canvas or svg
Install
Install with npm:
1$ npm install --save tarpaulin
Install with yarn:
1$ yarn add tarpaulin
Usage
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
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
- 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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 5 are checked with a SAST tool
Score
2.4
/10
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