0.1.7 • Published 11 months ago

@clearlydefined/spdx v0.1.7

Weekly downloads
23
License
MIT
Repository
github
Last release
11 months ago

@clearlydefined/spdx

ClearlyDefined focused SPDX utility library.

This is used by clearlydefined/service

Install

npm install @clearlydefined/spdx
const SPDX = require('@clearlydefined/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

  • Merge pull request to this repo (make sure that it updates the version of this package - similar to this pull request.)
  • Release the new package to npm (the npm login credentials are in the ClearlyDefined Azure keyvault, if you need access or help with this reach out to @nellshamrell)
cd spdx
git checkout master
git fetch origin
git rebase origin/master
npm login
npm publish
0.1.7

11 months ago

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

4 years ago

0.1.0

5 years ago