Node Modules License Crawler
Crawls dependencies recursively from your package.json file and finds license texts from packages in node_modules. Note: development and peer dependencies are skipped.
Install
npm install node-modules-license-crawler
Usage
var fs = ;var nodeModulesLicenseCrawler = ; var data = ; fs;
Sample output
If react
was your only dependency the output would look like this. The modules text value refers to an index in the texts array. This is for if you want to save some space as you often have a few modules with the same exact license text content (like react
and react-is
does here).
Modules where we couldn't find a license have text value null
instead of an index number.