code: function(dir) {
  
          // Return if the node_modules directory doesn't exist.
          try {
            FS.statSync(dir);
          } catch (e) {return;}
  
          // Check each direcory for a monitor-dashboard app
          FS.readdirSync(dir).forEach(function(moduleName) {
  
            // See if this is a monitor app, and load if it is
            // then load sub-modules
            var moduleDir = dir + '/' + moduleName;
            if (testAppDir(moduleDir) || moduleName === 'monitor') {
  
              // If it is a monitor-app, process any sub node_modules
              loadNodeModulesDir(moduleDir + '/node_modules');
            }
          });
        }
docs: Process all apps under a node_modules directory