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

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

              
11