Socket
Socket
Sign inDemoInstall

spdx-correct

Package Overview
Dependencies
1
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

index.js

30

package.json
{
"name": "spdx-correct",
"description": "correct invalid SPDX identifiers",
"version": "1.0.0",
"author": {
"name": "Kyle E. Mitchell",
"email": "kyle@kemitchell.com",
"url": "http://kemitchell.com"
},
"bugs": {
"url": "https://github.com/kemitchell/spdx-correct.js/issues"
},
"version": "1.0.1",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)",
"dependencies": {
"spdx": "^0.4.0"
"spdx-license-ids": "^1.0.2"
},
"devDependencies": {
"jscs": "~1.13.1",
"jshint": "~2.8.0",
"jsmd": "~0.3.0",
"defence-cli": "^1.0.1",
"replace-require-self": "^1.0.0",
"spdx-expression-parse": "^1.0.0",
"tape": "~4.0.0"
},
"homepage": "https://github.com/kemitchell/spdx-correct.js",
"keywords": [

@@ -31,12 +23,6 @@ "SPDX",

"license": "Apache-2.0",
"main": "spdx-correct.js",
"repository": {
"type": "git",
"url": "git+https://github.com/kemitchell/spdx-correct.js"
},
"repository": "kemitchell/spdx-correct.js",
"scripts": {
"lint": "jshint spdx-correct.js test && jscs spdx-correct.js test",
"precommit": "npm run lint && npm run test",
"test": "jsmd README.md && tape test/*.test.js"
"test": "defence README.md | replace-require-self | node && tape *.test.js"
}
}

@@ -1,21 +0,10 @@

spdx-correct.js
===============
```javascript
var correct = require('spdx-correct');
var assert = require('assert');
[![npm version](https://img.shields.io/npm/v/spdx-correct.svg)](https://www.npmjs.com/package/spdx-correct)
[![license](https://img.shields.io/badge/license-Apache--2.0-303284.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![build status](https://img.shields.io/travis/kemitchell/spdx-correct.js.svg)](http://travis-ci.org/kemitchell/spdx-correct.js)
assert.equal(correct('mit'), 'MIT')
assert.equal(correct('Apache 2'), 'Apache-2.0')
Correct invalid SPDX identifiers.
<!--js
var correct = require('./');
-->
```js
correct('mit'); // => 'MIT'
correct('Apache 2'); // => 'Apache-2.0'
correct('No idea what license'); // => null
assert(correct('No idea what license') === null)
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc