ClearlyDefined focused SPDX utility library.
This is used by clearlydefined/service
Package is hosted in GitHub packages See here for details on how to use
npm install clearlydefined/spdx
const SPDX = require('spdx')
SPDX.parse('MIT')
SPDX.stringify({ license: 'MIT' })
SPDX.satisfies('MIT', 'MIT OR Apache-2.0')
SPDX.merge('MIT', 'Apache-2.0', 'AND')
SPDX.expand('MIT or Apache-2.0')
SPDX.normalize('mit')
SPDX.lookupByName('Apache License 2.0')
git clone https://github.com/clearlydefined/spdx
cd spdx
npm i
npm test
-
Merge pull request to this repo (make sure that it updates the version of this package - similar to this pull request.)
-
Create a relese on the Repository to run the publish workflow
-
Update clearlydefined/service to use the new version