spdx-correct
Advanced tools
correct invalid SPDX expressions
Weekly downloads
Readme
var correct = require('spdx-correct')
var assert = require('assert')
assert.equal(correct('mit'), 'MIT')
assert.equal(correct('Apache 2'), 'Apache-2.0')
assert(correct('No idea what license') === null)
// disable upgrade option
assert(correct('GPL-3.0'), 'GPL-3.0-or-later')
assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')
correct invalid SPDX expressions
The npm package spdx-correct receives a total of 17,898,809 weekly downloads. As such, spdx-correct popularity was classified as popular.
We found that spdx-correct demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.