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

let idx = 0;
const term = "ys";
while ((idx = content.indexOf(term, idx)) !== -1) {
  // Only print if it looks like a variable/function use
  const charBefore = content[idx - 1];
  const charAfter = content[idx + term.length];
  if (!/[a-zA-Z0-9_$]/.test(charBefore) && !/[a-zA-Z0-9_$]/.test(charAfter)) {
    console.log(`\n--- Match at ${idx} ---`);
    console.log(content.substring(idx - 150, idx + 250));
  }
  idx += term.length;
}
