LicensePRFree pilot

Review changed npm licenses before merge.

Compare two npm SPDX SBOMs from the same project. See which new or changed dependencies your license policy allows, blocks, or sends to a reviewer. Files stay in this browser.

Files and policy

Choose two npm SPDX JSON files from the same project. Match the npm version, input mode, included dependency types and workspace selection. Up to 2 MB combined.

How to export both files

Use a UTF-8 shell such as Bash, Command Prompt, or PowerShell 7.

In the target branch revision, run npm sbom --package-lock-only --sbom-format=spdx > base.spdx.json

In the proposed revision, run npm sbom --package-lock-only --sbom-format=spdx > head.spdx.json

Check include and omit settings in each revision. For example, NODE_ENV=production can omit development dependencies. To include them in both files, add --include=dev to both commands.

Separate individual SPDX IDs with commas. Include at least one ID.

Audit report

Run the synthetic example or compare your own files.

The report compares declared licenses, package checksums and dependency relationships recorded in the two inventories. Use a separate review for file contents and repository enforcement. npm SBOM documentation

Try a package with the same version

The two synthetic inventories both declare MIT for the same package version. Its npm checksum differs, so the report sends it to review.

Try a new root dependency relationship

The sample adds a project dependency on a package already in the inventory. The policy checks it again with the same version and checksum.

Try a new transitive dependency relationship

A second package starts using an existing dependency. The sample policy blocks its declared license, even though the dependency version stays the same.

Ask about a pilot