code: function createDefaultMiddleware(connect, options) {
      var middlewares = [];
      if (!Array.isArray(options.base)) {
        options.base = [options.base];
      }
      // Options for serve-static module. See https://www.npmjs.com/package/serve-static
      var defaultStaticOptions = {};
      var directory = options.directory || options.base[options.base.length - 1];
      options.base.forEach(function(base) {
        // Serve static files.
        var path = base.path || base;
        var staticOptions = base.options || defaultStaticOptions;
        middlewares.push(serveStatic(path, staticOptions));
      });
      // Make directory browse-able.
      middlewares.push(serveIndex(directory.path || directory, directory.options));
      return middlewares;
    }
docs: Maximum available ports to check after the specified port