Installations
npm install @trinketmage/sword
Developer Guide
Typescript
No
Module System
CommonJS, ESM
Node Version
20.11.1
NPM Version
10.5.0
Score
71.2
Supply Chain
77.6
Quality
83
Maintenance
100
Vulnerability
81.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (85.66%)
GLSL (14.34%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
trinketmage
Download Statistics
Total Downloads
3,698
Last Day
1
Last Week
5
Last Month
55
Last Year
1,307
GitHub Statistics
GPL-3.0 License
156 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Nov 25, 2024
Bundle Size
2.24 kB
Minified
894.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.2.2
Package Id
@trinketmage/sword@0.2.2
Unpacked Size
74.75 kB
Size
24.91 kB
File Count
19
NPM Version
10.5.0
Node Version
20.11.1
Published on
Oct 07, 2024
Total Downloads
Cumulative downloads
Total Downloads
3,698
Last Day
0%
1
Compared to previous day
Last Week
-78.3%
5
Compared to previous week
Last Month
19.6%
55
Compared to previous month
Last Year
138.5%
1,307
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
sword.js
It's dangerous to go alone! Take this.Getting started
npm i --save @trinketmage/sword
Mathematics
- lerp: Linear interpolation.
- angleToVector: Calculate a 2d vector on unit circle from an angle in degree.
- vectorToAngle: Calculate an angle in degree from a 2d vector (with optional pivot).
3d
- getScreenPos: Screen position (2d vector) of position (3d vector).
- getFovHeigth: Get height of frustrum (y) at a specific depth (z).
glsl
- stagger: glsl implementation of staggers
1#pragma glslify: stagger = require(@trinketmage/sword/src/glsl/stagger)
- backgroundCover: glsl UV calculation for background cover for fullscreen texture
1#pragma glslify: backgroundCover = require(@trinketmage/sword/src/glsl/backgroundCover)

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Warn: no linked content found
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/29 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
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3.9
/10
Last Scanned on 2025-02-10
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