Gathering detailed insights and metrics for gk-magic-numbers
Gathering detailed insights and metrics for gk-magic-numbers
Gathering detailed insights and metrics for gk-magic-numbers
Gathering detailed insights and metrics for gk-magic-numbers
npm install gk-magic-numbers
Typescript
Module System
Node Version
NPM Version
65.4
Supply Chain
67.4
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
582
Last Day
2
Last Week
4
Last Month
8
Last Year
67
3 Commits
1 Forks
2 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.2
Package Id
gk-magic-numbers@0.0.2
Unpacked Size
2.35 kB
Size
1.21 kB
File Count
4
NPM Version
5.6.0
Node Version
8.11.3
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
33.3%
4
Compared to previous week
Last month
166.7%
8
Compared to previous month
Last year
-30.9%
67
Compared to previous year
No dependencies detected.
Validation of MIME types for attached formats, files or buffers
The main function is validate
with 2 params:
file
is an required String param that return the MIME type for the file given
shouldBe
is an optional String param that says to the validate
function, what should the MIME type that expect for the file given
1const magicNumbers = require('gk-magic-numbers') 2 3// Using file 4let myPdf = magicNumbers.validate('file.pdf') 5console.log(myPdf) // application/pdf 6 7// Usign shouldBe 8if (magicNumbers.validate('file.mp3', 'mp3')) { // returns a Boolean 9 console.log('Is a mp3') 10}
The MIT License (MIT)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/2 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
license file not detected
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-01-13
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