npm license checker
Drop your package-lock.json to see the license of every dependency, with AGPL, GPL, proprietary and unknown licenses flagged at the top. The file is read in your browser and never uploaded.
What it checks
- Network copyleft (AGPL, OSL-3.0): offering the software over a network, such as a web app, can already require you to share source code.
- Strong copyleft (GPL, EUPL): distributing your software with it can require your code to use the same license.
- Restricted or proprietary (UNLICENSED, SSPL, BUSL, non-commercial Creative Commons): use is limited, or the package is not licensed for others at all.
- Needs manual check: no license field, "SEE LICENSE IN …", or a string that isn't a recognised license. These are the ones most likely to hide a surprise.
- Weak copyleft (LGPL, MPL, EPL) and permissive (MIT, Apache-2.0, BSD, ISC) are listed too.
- A mismatch notice appears when your project declares a permissive or no license but depends on copyleft packages.
Dual licenses such as MIT OR GPL-3.0 count as the least restrictive option, because you may choose it. AND combinations count as the most restrictive part.
Real case: an AGPL package hid behind "SEE LICENSE IN LICENSE.md" on an older version of this site.
Limits
- It reads the
licensefield that package authors declared, as recorded in the lockfile. It does not read the actual LICENSE files, so a wrong declaration stays wrong. - Only npm lockfiles with
lockfileVersion2 or 3 (npm 7 and later) are supported. Version 1 lockfiles don't record licenses. - This is not legal advice. Whether a license affects you depends on how you use and distribute the software.
FAQ
Is my lockfile uploaded anywhere?
No. The file is parsed by JavaScript in this page. There is no server-side processing, and the check works offline once the page has loaded.
Why are devDependencies excluded by default?
Development tools such as test runners and bundlers usually aren't shipped with your product, so their licenses rarely carry obligations for it. Tick the option to include them.
A package shows "SEE LICENSE IN LICENSE.md". What should I do?
Open that package's LICENSE file in node_modules or its repository. Packages that use custom or copyleft terms often declare them this way.