spdx-correct
correct invalid SPDX expressions
Last updated 2 years ago by kemitchell .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install spdx-correct 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.2.0                                ...           latest (2 years ago)

18 Versions

  • 3.2.0                                ...           2 years ago
  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.2                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.4                                ...           7 years ago
  • 2.0.3                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 1.0.0-prerelease-4                                ...           9 years ago
  • 1.0.0-prerelease-3                                ...           10 years ago
  • 1.0.0-prerelease-2                                ...           10 years ago
  • 1.0.0-prerelease-1                                ...           10 years ago
Maintainers (2)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE