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.
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>
const spdxLicenseList = require('@ovyerus/licenses/simple');console.log(spdxLicenseList);//=> 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.