examples/cordova1/plugins/branch-cordova-sdk/src/scripts/npm/downloadNpmDependencies.js
function getNodeModulesToInstall(dependencies) {
    const modules = [];
    for (const module in dependencies) {
      if (dependencies.hasOwnProperty(module)) {
        try {
          require(module);
        } catch (err) {
          modules.push(module);
        }
      }
    }
    return modules;
  }
function getNodeModulesToInstall(dependencies) {
    const modules = [];
    for (const module in dependencies) {
      if (dependencies.hasOwnProperty(module)) {
        try {
          require(module);
        } catch (err) {
          modules.push(module);
        }
      }
    }
    return modules;
  }
function getNodeModulesToInstall ( dependencies ) { const modules = [ ] ; for ( const module in dependencies ) { if ( dependencies . hasOwnProperty ( module ) ) { try { require ( module ) ; } catch ( err ) { modules . push ( module ) ; } } } return modules ; }
checks to see which node modules need to be installed from package.json.dependencies
checks to see which node modules need to be installed from package . json . dependencies