spdx-license-id-set
v1.0.0
Published
A set of SPDX license identifiers
Downloads
1
Maintainers
Readme
spdx-license-id-set
A set of SPDX license identifiers
Installation
npm
npm install spdx-license-id-set
bower
bower install spdx-license-id-set
API
spdxLicenseIdSet
It exposes a Set
instance that includes all the SPDX license identifiers.
const spdxLicenseIdSet = require('spdx-license-id-set');
spdxLicenseIdSet.has('MIT'); //=> true
spdxLicenseIdSet.has('zlib-acknowledgement'); //=> true
spdxLicenseIdSet.has('foo-bar-baz'); //=> false