Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.17 KB

@clearlydefined/spdx

ClearlyDefined focused SPDX utility library.

This is used by clearlydefined/service

Install

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')

Local development

git clone https://github.com/clearlydefined/spdx
cd spdx
npm i
npm test

Release