1.0.0 • Published 8 years ago

spdx-license-id-set v1.0.0

Weekly downloads
5
License
Unlicense
Repository
github
Last release
8 years ago

spdx-license-id-set

NPM version Bower version Build Status Coverage Status Dependency Status devDependency Status

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

License

The Unlicense.