code: function () {
      return new Promise(function (resolve, reject) {
        portfinder.getPort(function (error, port) {
          if (error) {
            reject(error);
          } else {
            resolve(port);
          }
        });
      });
    }
docs: Functional._getOpenPort() -> Object