1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/spdx-correct/README.md

23 lines
577 B
Markdown
Raw Normal View History

2024-01-16 21:26:16 +08:00
## Usage
2023-12-18 13:12:25 +08:00
```javascript
var correct = require('spdx-correct')
var assert = require('assert')
2024-01-16 21:26:16 +08:00
assert.strictEqual(correct('mit'), 'MIT')
2023-12-18 13:12:25 +08:00
2024-01-16 21:26:16 +08:00
assert.strictEqual(correct('Apache 2'), 'Apache-2.0')
2023-12-18 13:12:25 +08:00
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')
```
2024-01-16 21:26:16 +08:00
## Contributors
spdx-correct has benefited from the work of several contributors.
See [the GitHub repository](https://github.com/jslicense/spdx-correct.js/graphs/contributors)
for more information.