lib/index.js
function checkLicenses(rootDir){

    var licenses = {},
        nodeModulesFolder = path.resolve(rootDir, "./node_modules"),
        moduleFolders = fs.readdirSync(nodeModulesFolder),
        res;

    _(moduleFolders).each(function(module) {
        licenses[module] = checkModuleLicense(nodeModulesFolder + "/" + module);
    });

    return licenses;
}
function checkLicenses(rootDir){

    var licenses = {},
        nodeModulesFolder = path.resolve(rootDir, "./node_modules"),
        moduleFolders = fs.readdirSync(nodeModulesFolder),
        res;

    _(moduleFolders).each(function(module) {
        licenses[module] = checkModuleLicense(nodeModulesFolder + "/" + module);
    });

    return licenses;
}
function checkLicenses ( rootDir ) { var licenses = { } , nodeModulesFolder = path . resolve ( rootDir , "./node_modules" ) , moduleFolders = fs . readdirSync ( nodeModulesFolder ) , res ; _ ( moduleFolders ) . each ( function ( module ) { licenses [ module ] = checkModuleLicense ( nodeModulesFolder + "/" + module ) ; } ) ; return licenses ; }
check all licenses of your node_modules
@param {String} rootDir your modules' root dir
check all licenses of your node_modules