code: function InternalCodec(codecOptions, iconv) {
      this.enc = codecOptions.encodingName;
      this.bomAware = codecOptions.bomAware;
  
      if (this.enc === "base64")
          this.encoder = InternalEncoderBase64;
      else if (this.enc === "cesu8") {
          this.enc = "utf8"; // Use utf8 for decoding.
          this.encoder = InternalEncoderCesu8;
  
          // Add decoder for versions of Node not supporting CESU-8
          if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {
              this.decoder = InternalDecoderCesu8;
              this.defaultCharUnicode = iconv.defaultCharUnicode;
          }
      }
  }
docs: ------------------------------------------------------------------------------