Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

spdx-correct

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Issues
File Explorer

Advanced tools

spdx-correct

correct invalid SPDX expressions

    3.1.1latest

Version published
Maintainers
1
Weekly downloads
21,289,467
decreased by-2.97%

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 17,898,809 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
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc