documentit/node_modules/spdx-correct
2018-01-05 10:48:13 -08:00
..
index.js installed electron 2018-01-05 10:48:13 -08:00
LICENSE installed electron 2018-01-05 10:48:13 -08:00
package.json installed electron 2018-01-05 10:48:13 -08:00
README.md installed electron 2018-01-05 10:48:13 -08: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)