Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

spdx-correct

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Issues
File Explorer

Advanced tools

spdx-correct

correct invalid SPDX expressions

    3.1.1latest
    Github

Version published
Maintainers
1
Weekly downloads
17,189,991
decreased by-18.21%

Weekly downloads

Readme

Source
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')

Keywords

FAQs

What is spdx-correct?

correct invalid SPDX expressions

Is spdx-correct popular?

The npm package spdx-correct receives a total of 13,717,538 weekly downloads. As such, spdx-correct popularity was classified as popular.

Is spdx-correct well maintained?

We found that spdx-correct demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 22 May 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc