code: function ElasticSearch () {
    var self = this;
  
    self.klass = ElasticSearch;
    self.klass.super_.apply(self, arguments);
  
    var auth = [
          self.options.server.username,
          self.options.server.password
        ].compact().join(':');
  
    self.options.server.auth = auth;
    self.options.server.protocol = undefined;
  }
docs: new ElasticSearch (); new ElasticSearch (options); new ElasticSearch (url); new ElasticSearch (url, options);