Check if the string is one of the SPDX license identifiers
isSpdxLicenseId('MIT'); //=> true
isSpdxLicenseId('zlib-acknowledgement'); //=> true
isSpdxLicenseId('foo-bar-baz'); //=> falsenpm install is-spdx-license-idbower install is-spdx-license-idvar isSpdxLicenseId = require('shinnn/is-spdx-license-id.js');Download the script file and its dependency.
string: String
Return: Boolean
It returns true when the argument is one of the SPDX license identifiers, such as 'MIT' and 'BSD-4-Clause'. Otherwise it returns false.
Copyright (c) 2014 - 2015 Shinnosuke Watanabe
Licensed under the MIT License.