Toolvito

Package License Checker

Choose your project folder (with node_modules) or its lockfiles, or paste a lockfile. Each package’s licence is read as the files record it, checked against the SPDX License List and judged by the policy you set. The files are read in your browser and never uploaded.

Check licences

Or paste one file

    Your licence policy
    What each group of licences means for you
    Licences Answer

    Licence groups: choosealicense.com licence conditions (CC BY 3.0). Licence ids: SPDX License List, version …

    How to check licences

    1. Choose the project folder: package-lock.json and node_modules/*/package.json are read; other files are not opened. Or choose lockfiles, or paste one.
    2. Set what each group of licences means for you: allowed, check, or not allowed. Add licence ids you always allow or never allow.
    3. Read the packages that are not allowed or need checking first, and download the CSV for your records.

    Where the licences come from

    • npm 7 and later copy each package’s “license” into package-lock.json. node_modules/*/package.json has it for every installed package. composer.lock has it for PHP packages.
    • yarn.lock, pnpm-lock.yaml, requirements.txt, poetry.lock, Cargo.lock and go.mod do not record licences: for them the page can only say that the licence is missing.
    • Licences are written as SPDX expressions such as “MIT” or “(MIT OR Apache-2.0)”. A common name such as “Apache 2.0” is read as its SPDX id and noted. Anything else is shown as it is, to check by hand.

    How the answer is worked out

    • The groups follow the conditions choosealicense.com gives each licence: permissive licences ask you to keep the notice; copyleft licences ask you to share changes, per file (MPL), for the library (LGPL), for the whole program (GPL) or also when it is used over a network (AGPL).
    • “A AND B” means both licences apply, so the stricter answer counts. “A OR B” means you may choose, so the better answer counts. “WITH” adds an exception that gives extra permissions, so a licence that is not allowed becomes one to check.

    Limits you should know

    • This is not legal advice. The licence a package states can be wrong or incomplete; for anything that matters, read the licence files.
    • The page does not open the LICENSE files or look inside the code.

    Related tools