Get your own website
var buf1 = Buffer.from('abcdefghijkl');
var buf2 = Buffer.from('HELLO');

//Copy buf2 into parts of buf1:
buf2.copy(buf1, 2);

console.log(buf1.toString());

              
abHELLOhijkl