spdx-correct
correct invalid SPDX expressions
Last updated 7 years ago by kemitchell .
Apache-2.0 · Repository · Bugs · Original npm
$ cnpm install spdx-correct 
SYNC missed versions from official npm registry.
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')

Current Tags

  • 3.1.0                                ...           latest (7 years ago)

1 Versions

  • 3.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org