npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

spdx-correct

3.1.0 • Public • Published
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')

install

npm i spdx-correct

Downloadsweekly downloads

8,764,811

version

3.1.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability