Using npm-license-crawler API See the following example. var crawler = require('npm-license-crawler'), options = { start: ['../..'], exclude: ['.'], json: 'licenses.json', unknown: true }; crawler.dumpLicenses(options, function(error, res){ if (error) { console.error("Error:"...