basant307/AI_Governance_Project
045
1## Usage2 3```javascript4var correct = require('spdx-correct')5var assert = require('assert')6 7assert.strictEqual(correct('mit'), 'MIT')8 9assert.strictEqual(correct('Apache 2'), 'Apache-2.0')10 11assert(correct('No idea what license') === null)12 13// disable upgrade option14assert(correct('GPL-3.0'), 'GPL-3.0-or-later')15assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')16```17 18## Contributors19 20spdx-correct has benefited from the work of several contributors.21See [the GitHub repository](https://github.com/jslicense/spdx-correct.js/graphs/contributors)22for more information.23 