Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 17, 2024 via pnpm

validate-npm-package-license 3.0.4

Give me a string and I'll tell you if it's a valid npm package license string
Package summary
Share
3
issues
1
high severity
license
1
2
low severity
license
2
4
licenses
2
Apache-2.0
1
CC-BY-3.0
1
MIT
1
CC0-1.0
Package created
3 May 2015
Version published
5 Aug 2018
Maintainers
1
Total deps
5
Direct deps
2
License
Apache-2.0

Issues

3

1 high severity issue

high
Recommendation: Read and validate the license terms
via: spdx-correct@3.2.0 & others
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: spdx-correct@3.2.0 & others
Recommendation: Read and validate the license terms
via: spdx-correct@3.2.0 & others
Collapse
Expand

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
spdx-correct@3.2.0
validate-npm-package-license@3.0.4

Creative Commons Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
spdx-expression-parse@3.0.1

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-license-ids@3.0.17
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of validate-npm-package-license 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
spdx-correct3.2.07.07 kBApache-2.0
prod
1
2
spdx-expression-parse3.0.14.32 kBMIT
prod
1
2

Visualizations

Frequently Asked Questions

What does validate-npm-package-license do?

"Validate-npm-package-license" is a lightweight npm package that functions as a tool to validate the license string of your npm package. This package helps you ensure that the license terminology you're using aligns with necessary guidelines. It examines the given string and determines whether it's a valid npm package license string, judging it by the standards of the SPDX license identifiers.

How do you use validate-npm-package-license?

To use the "validate-npm-package-license" in your project, you first have to install the package in your project by running npm install validate-npm-package-license in the terminal. Once the package is installed, you can use it by requiring it in your code.

Below is an example of how to use the package:

var valid = require('validate-npm-package-license');

var assert = require('assert');
var validSPDXExpression = {
  validForNewPackages: true,
  validForOldPackages: true,
  spdx: true
};

assert.deepEqual(valid('MIT'), validSPDXExpression); // testing with the 'MIT' license

This code will return true if the license string is valid for both old and new packages and conforms to SPDX guidelines.

Where are the validate-npm-package-license docs?

The primary source of documentation for validate-npm-package-license is its README file on the official GitHub repository. This documentation gives a comprehensive overview about the package, its functionality, and how to use it effectively. It also provides code snippets to illustrate its proper use. All details regarding the package uses, functions, and example outputs are well defined for new and existing users.