Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
README.md | 1985-10-26 08:15 | 355 | d768d73 docs [كارل مبارك] | |
package.json | 2023-06-13 07:17 | 2.2K | 3e510ca test new git [كارل مبارك] | |
index.js | 1985-10-26 08:15 | 9.4K | 3e510ca test new git [كارل مبارك] | |
LICENSE | 1985-10-26 08:15 | 11K |
```javascript 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') ```