Installations
npm install @ovyerus/licenses
Score
79.6
Supply Chain
95.3
Quality
75.6
Maintenance
100
Vulnerability
69.9
License
Releases
Contributors
Developer
ovyerus
Module System
CommonJS
Statistics
7 Stars
75 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Updated on 07 Dec 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
86,759
Last day
21.1%
46
Compared to previous day
Last week
52.6%
490
Compared to previous week
Last month
21%
2,238
Compared to previous month
Last year
19.3%
28,226
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
licenses
List of SPDX licenses with predictable placeholder strings for copyright info.
This is a fork of spdx-license-list with added placeholders in the copyright strings (of most of the licenses) to make it easy for machines to create licenses with user-given info.
Some licenses are skipped due to being overly specific for that particular product or company, however most generic, OSI-approved licenses should have them just fine.
(If you want to add support for a license that hasn't received placeholders yet, feel free to submit a PR 😃)
The lists of licenses are just JSON files and can be used anywhere.
- spdx.json contains just license metadata
- spdx-full.json includes the license text too
- spdx-simple.json only contains the license IDs
Using SPDX License List version 3.8 (2020-02-09)
The placeholders in the text are in the format of <placeholder name>
, so for example, Copyright (c) 2002 John Doe
would become Copyright (c) <year> <author>
Install
$ npm install @ovyerus/licenses
Usage
1const spdxLicenseList = require('@ovyerus/licenses'); 2 3console.log(spdxLicenseList.MIT); 4/* 5{ 6 name: 'MIT License', 7 url: 'http://www.opensource.org/licenses/MIT', 8 osiApproved: true 9} 10*/
1const mitLicense = require('@ovyerus/licenses/licenses/MIT'); 2 3console.log(mitLicense.licenseText); 4//=> 'MIT License\r\n\r\nCopyright (c) <year> <copyright holders> …'
You can also get a version with the licence text included:
1const spdxLicenseList = require('@ovyerus/licenses/full'); 2 3console.log(spdxLicenseList.MIT); 4/* 5{ 6 name: 'MIT License', 7 url: 'http://www.opensource.org/licenses/MIT', 8 osiApproved: true, 9 licenseText: '…' 10} 11*/
Or just the license IDs as a Set
:
1const spdxLicenseList = require('@ovyerus/licenses/simple'); 2 3console.log(spdxLicenseList); 4//=> Set {'Glide', 'Abstyles', …}
API
spdxLicenseList
Type: Object
The licenses are indexed by their identifier and contains a name
property with the full name of the license, url
with the URL to the license, and osiApproved
boolean for whether the license is OSI Approved.
No vulnerabilities found.
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Creative Commons Zero v1.0 Universal: LICENSE:0
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
23 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- 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-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-px4h-xg32-q955
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- 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 2024-11-11
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