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

const target = "C.useEffect(()=>{const p=new Date().toISOString().substring(0,10);k.some(N=>N.status===\"used\"&&N.created_at.startsWith(p))";
const idx = content.indexOf(target);
if (idx !== -1) {
  console.log(content.substring(idx - 1500, idx + 1000));
} else {
  console.log("Not found");
}
