Gathering detailed insights and metrics for get-spdx-license-ids
Gathering detailed insights and metrics for get-spdx-license-ids
npm install get-spdx-license-ids
Typescript
Module System
Node Version
NPM Version
64.7
Supply Chain
57.1
Quality
73.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
78,999
Last Day
4
Last Week
20
Last Month
43
Last Year
4,332
22 Commits
3 Forks
1 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
2.1.0
Package Id
get-spdx-license-ids@2.1.0
Size
2.48 kB
NPM Version
5.6.0
Node Version
9.4.0
Cumulative downloads
Total Downloads
Last day
100%
4
Compared to previous day
Last week
300%
20
Compared to previous week
Last month
-24.6%
43
Compared to previous month
Last year
-75.2%
4,332
Compared to previous year
2
4
A Node.js module to get an array of the latest SPDX license identifiers from spdx.org
1const getSpdxLicenseIds = require('get-spdx-license-ids'); 2 3(async () => { 4 const ids = await getSpdxLicenseIds(); 5 //=> ['0BSD', 'AAL', 'Abstyles', 'Adobe-2006', 'Adobe-Glyph', 'ADSL', 'AFL-1.1', 'AFL-1.2', ...] 6})();
npm install get-spdx-license-ids
1const getSpdxLicenseIds = require('get-spdx-license-ids');
options: Object
(request
options without json
option that defaults to true
)
Return: Promise<Array<string>>
It retrieves an array of non-deprecated SPDX license identifiers from https://spdx.org/licenses/licenses.json.
1(async () => { 2 const ids = await getSpdxLicenseIds(); 3 ids.includes('MIT'); //=> true 4 ids.includes('ISC'); //=> true 5 6 ids.includes('GPL-1.0'); //=> false 7})
Retrieves deprecated IDs only.
1(async () => { 2 const deprecatedIds = await getSpdxLicenseIds.deprecated(); 3 deprecatedIds.includes('MIT'); //=> false 4 deprecatedIds.includes('ISC'); //=> false 5 6 deprecatedIds.includes('GPL-1.0'); //=> true 7})();
Retrieves both deprecated and non-deprecated IDs in a single array.
1(async () => { 2 const allIds = await getSpdxLicenseIds.all(); 3 allIds.includes('MIT'); //=> true 4 allIds.includes('ISC'); //=> true 5 allIds.includes('GPL-1.0'); //=> false 6})();
Retrieves both deprecated and non-deprecated IDs in two separate arrays.
1(async () => { 2 const pair = await getSpdxLicenseIds.both(); 3 pair.length; //=> 2 4 5 const [valid, deprecated] = pair; 6 7 valid.includes('MIT'); //=> true 8 valid.includes('ISC'); //=> true 9 10 valid.includes('GPL-1.0'); //=> false 11 12 deprecated.includes('MIT'); //=> false 13 deprecated.includes('ISC'); //=> false 14 15 deprecated.includes('GPL-1.0'); //=> true 16})();
ISC License © 2018 Shinnosuke Watanabe
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/22 approved changesets -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
37 existing vulnerabilities detected
Details
Score
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