var buf = Buffer.from('Hello, and welcome to Rome!');

console.log(buf.indexOf('e'));