Node.js Buffer concat() add to buffer together
concat()
//Buffer concatenation var buffer1 = Buffer.from('Sample buffer1'); var buffer2 = Buffer.from('Sample buffer2'); var buffer3 = Buffer.concat([buffer1, buffer2]); console.log('buffer3 content:'+buffer3.toString());