var buf = Buffer.from('abcdef');

buf.write('qq',2);

console.log(buf.toString());


              

abqqef