Installations
npm install spdx-correct
Developer Guide
Typescript
No
Module System
N/A
Node Version
18.14.2
NPM Version
9.5.0
Score
99.5
Supply Chain
73
Quality
78
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
jslicense
Download Statistics
Total Downloads
6,071,473,533
Last Day
4,739,721
Last Week
24,351,099
Last Month
83,740,601
Last Year
1,270,319,923
GitHub Statistics
32 Stars
119 Commits
22 Forks
4 Watching
15 Branches
13 Contributors
Bundle Size
18.03 kB
Minified
6.29 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.2.0
Package Id
spdx-correct@3.2.0
Unpacked Size
22.86 kB
Size
7.07 kB
File Count
4
NPM Version
9.5.0
Node Version
18.14.2
Publised On
07 Mar 2023
Total Downloads
Cumulative downloads
Total Downloads
6,071,473,533
Last day
7.6%
4,739,721
Compared to previous day
Last week
11%
24,351,099
Compared to previous week
Last month
-31.2%
83,740,601
Compared to previous month
Last year
6.7%
1,270,319,923
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
5
Usage
1var correct = require('spdx-correct') 2var assert = require('assert') 3 4assert.strictEqual(correct('mit'), 'MIT') 5 6assert.strictEqual(correct('Apache 2'), 'Apache-2.0') 7 8assert(correct('No idea what license') === null) 9 10// disable upgrade option 11assert(correct('GPL-3.0'), 'GPL-3.0-or-later') 12assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')
Contributors
spdx-correct has benefited from the work of several contributors. See the GitHub repository for more information.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 4/19 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/jslicense/spdx-correct.js/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/jslicense/spdx-correct.js/ci.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:10
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
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 17 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2025-01-06
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