cutenode
all projects

liblice

A module that finds the licenses across your installed dependency tree.

status
popular
lives on
github
stars
16
last push
sep 19, 2022

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.