parcoursup/node_modules/spdx-correct
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00
..
index.js $ 2023-03-05 13:23:23 +01:00
LICENSE $ 2023-03-05 13:23:23 +01:00
package.json $ 2023-03-05 13:23:23 +01:00
README.md $ 2023-03-05 13:23:23 +01:00

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