var buf1 = Buffer.from('abcdefghijkl');
var buf2 = Buffer.from('HELLO');

//Copy parts of buf2 into parts of buf1:

buf2.copy(buf1, 2, 0, 2);

console.log(buf1.toString());

              
abHEefghijkl