Socket
Socket
Sign inDemoInstall

spdxvalidator

Package Overview
Dependencies
3
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spdxvalidator

validate module licence against spdx list of valid licences.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.47 MB
Created
Weekly downloads
 

Readme

Source

SpdxValidator

Check if dependent modules in nodejs app is valid as per spdx list of valid licenses.

What is spdx

Software Package Data Exchange® (SPDX®) is an open standard for communicating software bill of material information (including components, licenses, copyrights, and security references).

npm spdxvalidator

Its this easy:

npm i spdxvalidator -g

spdxvalidator --jarPath "spdx_jar_file_path.jar" 

how to get scan.json

Include scan.json if you want to exclude licence that contains less than 100% match in licence text. Alt text

Org name and creater in spdxConfig.json

{
    "orgName": "org name", 
    "createrInfo": "webinfo@org.com"
}

Licence file

It will remove packages that does not contain valid licence name as per spdx

Alt text

How does it work?

It scan's all licences in current directory node_modules, from's a list of licenses, creates a spdx file for it and validate it against the jar file specified.

It's that simple :)

HI its me deepak, I don't maintain this package if you want to be a contributer, drop me a mail at deepak.r.poojari@gmail.com.

FAQs

Last updated on 04 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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