const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

let idx = 0;
let count = 0;
while ((idx = content.indexOf('Simulasi', idx)) !== -1) {
  count++;
  const start = Math.max(0, idx - 100);
  const end = Math.min(content.length, idx + 150);
  console.log(`\n[Occurrence #${count}] Index: ${idx}`);
  console.log(content.substring(start, end).replace(/\n/g, ' '));
  idx += 'Simulasi'.length;
}
