code: function Decoder(options) {
    options = options || {};
    Transform.call(this, {});
  
    this._reset();
  
    // maximum length for bulk strings (512MB)
    this.maxlen = options.maxlen || 536870912;
  
    // create String instances for simple string replies
    this.simple = options.simple !== undefined ? options.simple : false;
  
    // return buffers for bulk strings
    this.buffers = options.return_buffers || options.buffers;
  
    // pass RESP messasges untouched
    this.raw = options.raw !== undefined ? options.raw : false;
  
    /* istanbul ignore next: optional dependency */
    if(hiredis) {
      this.reader = new hiredis.Reader({return_buffers: this.buffers});
    }
  
  }
docs: Class for decoding RESP messages to javascript types.
  
  Emits an error event when an exception occurs.