7d311366164598e383ab22962eddea497ded118be83556f962c40a7b237ec091d5750b74b9967b33d169d7826e02eeeab95317a9237bc56bc864ec1f5a5dd7 577 B

12345678910111213141516171819202122
  1. ## Usage
  2. ```javascript
  3. var correct = require('spdx-correct')
  4. var assert = require('assert')
  5. assert.strictEqual(correct('mit'), 'MIT')
  6. assert.strictEqual(correct('Apache 2'), 'Apache-2.0')
  7. assert(correct('No idea what license') === null)
  8. // disable upgrade option
  9. assert(correct('GPL-3.0'), 'GPL-3.0-or-later')
  10. assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')
  11. ```
  12. ## Contributors
  13. spdx-correct has benefited from the work of several contributors.
  14. See [the GitHub repository](https://github.com/jslicense/spdx-correct.js/graphs/contributors)
  15. for more information.