liblice
16 starspopular github
A module that finds the licenses across your installed dependency tree.
A module that finds the licenses across your installed dependency tree.
liblice crawls node_modules, parses every package.json it finds, and gives you the licenses back as a flat list, per module, or grouped by license. Each license comes with conformance info from the SPDX license list, like whether it's OSI or FSF approved and whether it uses a deprecated ID.
const { licenses } = require('liblice');
licenses('.');
It started life inside delice and got split out so it could be used on its own.