lib/frame-builder.js
function appendData(data, builder) {
  if(Array.isArray(data) || Buffer.isBuffer(data)) {
    data = Buffer.from(data);
  } else {
    data = Buffer.from(data, 'ascii');
  }

  builder.appendBuffer(data);
}
function appendData(data, builder) {
  if(Array.isArray(data) || Buffer.isBuffer(data)) {
    data = Buffer.from(data);
  } else {
    data = Buffer.from(data, 'ascii');
  }

  builder.appendBuffer(data);
}
function appendData ( data , builder ) { if ( Array . isArray ( data ) || Buffer . isBuffer ( data ) ) { data = Buffer . from ( data ) ; } else { data = Buffer . from ( data , 'ascii' ) ; } builder . appendBuffer ( data ) ; }
Appends data provided as Array, String, or Buffer
Appends data provided as Array String or Buffer