const fs = require('fs');
const content = fs.readFileSync('app.js', 'utf8');

let idx = 0;
const term = "Tripay";
while ((idx = content.toLowerCase().indexOf(term.toLowerCase(), idx)) !== -1) {
  console.log(`\n--- Match at ${idx} ---`);
  console.log(content.substring(idx - 150, idx + 250));
  idx += term.length;
}
