Installations
npm install get-spdx-license-ids
Developer Guide
Typescript
No
Module System
N/A
Node Version
9.4.0
NPM Version
5.6.0
Score
64.7
Supply Chain
57.1
Quality
73.4
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
78,999
Last Day
4
Last Week
20
Last Month
43
Last Year
4,332
GitHub Statistics
22 Commits
3 Forks
1 Watching
1 Branches
2 Contributors
Bundle Size
14.16 kB
Minified
4.81 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
78,999
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
4
get-spdx-license-ids
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})();
Installation
npm install get-spdx-license-ids
API
1const getSpdxLicenseIds = require('get-spdx-license-ids');
getSpdxLicenseIds([options])
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})
getSpdxLicenseIds.deprecated([options])
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})();
getSpdxLicenseIds.all([options])
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})();
getSpdxLicenseIds.both([options])
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})();
License
ISC License © 2018 Shinnosuke Watanabe
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: ISC License: LICENSE:0
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
- 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 'master'
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
Reason
37 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx
- Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6
- Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9
- Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f
- Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p
- Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv
- Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8
- Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65
- Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh
- Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44
- Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546
- Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
1.7
/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