package.json / Lockfile License Checker

Paste a package-lock.json to group your dependencies by licence and flag copyleft, proprietary or unknown ones against a policy you choose. A plain package.json shows only its own licence and dependency list.

Use the tool

Why this tool exists

Before a release, an audit or a customer questionnaire, someone asks which licences are in your dependency tree. A single strong copyleft package in a closed-source product can be a legal problem, and a dependency with no licence stated is a risk of its own. Checking hundreds of transitive packages by hand is not realistic.

A lockfile of version 2 or 3 records the licence of each package, so the information is already there. This tool groups the packages by licence and applies a simple policy: permissive only, permissive plus weak copyleft, or anything except proprietary and unknown. It is a screening aid and not legal advice, and licence fields in packages can be wrong. The file is read in your browser and is not uploaded.

How to use it

  1. Paste your package-lock.json, preferably lockfile version 2 or 3.
  2. Choose the policy: permissive only, permissive plus weak copyleft, or anything except proprietary or unknown.
  3. Read the licences grouped with package counts and the packages flagged by your policy.
  4. Investigate flagged packages, and ask a lawyer where the licence terms matter.

Frequently asked questions

Why is package.json not enough?

A package.json lists dependency names and version ranges but not their licences. Only the lockfile records a licence per installed package, so use package-lock.json for the full picture.

Is this legal advice?

No. It is a quick screening based on the licence strings in package metadata, which can be missing or wrong. For commercial products, have the flagged licences reviewed by someone qualified.

Why are some packages marked unknown?

Their metadata has no licence field or uses a non-standard string. Open the package repository to find the actual licence, and treat the package as unknown until you have confirmed it.