Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Jan 6, 2024 via pnpm

spdx-expression-parse 1.0.4

parse SPDX license expressions
Package summary
Share
1
issue
1
high severity
license
1
1
license
1
(MIT AND CC-BY-3.0)
Package created
2 Aug 2015
Version published
5 Oct 2016
Maintainers
2
Total deps
1
Direct deps
0
License
(MIT AND CC-BY-3.0)

Issues

1

1 high severity issue

high
Recommendation: Read and validate the license terms
via: spdx-expression-parse@1.0.4
Collapse
Expand

Licenses

(MIT AND CC-BY-3.0)

Uncategorized
1 Packages, Including:
spdx-expression-parse@1.0.4
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

0
All Dependencies CSV
β“˜ This is a list of spdx-expression-parse 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does spdx-expression-parse do?

The "spdx-expression-parse" is a JavaScript package that parses SPDX license expression strings, such as the ones seen in package.json license strings, into structured ECMAScript objects. The npm command-line interface depends on it, as do many license-audit tools. This makes it crucial for managing and auditing license data, especially for users of open-source software.

How do you use spdx-expression-parse?

To use spdx-expression-parse, first include it in your project with require('spdx-expression-parse'). Then, employ the parse method to convert a license string into an ECMAScript object. Here's a basic usage example:

var parse = require('spdx-expression-parse')
var assert = require('assert')

assert.deepEqual(
  parse('BSD-2-Clause'),
  {license: 'BSD-2-Clause'}
)

You can also parse complex license terms, like so:

assert.deepEqual(
  parse('(MIT AND (LGPL-2.1+ AND BSD-3-Clause))'),
  {
    left: {license: 'MIT'},
    conjunction: 'and',
    right: {
      left: {license: 'LGPL-2.1', plus: true},
      conjunction: 'and',
      right: {license: 'BSD-3-Clause'}
    }
  }
)

Please, note that invalid SPDX license expressions will throw errors.

Where are the spdx-expression-parse docs?

For comprehensive documentation on the spdx-expression-parse package, direct your attention to its GitHub page: spdx-expression-parse GitHub. It will elaborate on more advanced parts of the package and give user-friendly guides for you to work with.