spdx-correct (3.2.0)

Published 2026-02-24 14:05:23 +00:00 by atheaadmin

Installation

registry=
npm install spdx-correct@3.2.0
"spdx-correct": "3.2.0"

About this package

Usage

var correct = require('spdx-correct')
var assert = require('assert')

assert.strictEqual(correct('mit'), 'MIT')

assert.strictEqual(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')

Contributors

spdx-correct has benefited from the work of several contributors. See the GitHub repository for more information.

Dependencies

Dependencies

ID Version
spdx-expression-parse ^3.0.0
spdx-license-ids ^3.0.0

Development Dependencies

ID Version
defence-cli ^3.0.1
replace-require-self ^1.0.0
standard ^14.3.4
standard-markdown ^6.0.0
tape ^5.0.1

Keywords

SPDX law legal license metadata
Details
npm
2026-02-24 14:05:23 +00:00
1
Apache-2.0
latest
7.1 KiB
Assets (1)
Versions (1) View all
3.2.0 2026-02-24