const fs = require('fs'); const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8'); const idx = content.indexOf('CreateStaticUploadURL'); if (idx !== -1) { console.log('--- CreateStaticUploadURL snippet ---'); console.log(content.substring(Math.max(0, idx - 100), idx + 500)); } const idx2 = content.indexOf('CreateStaticApp'); if (idx2 !== -1) { console.log('--- CreateStaticApp snippet ---'); console.log(content.substring(Math.max(0, idx2 - 100), idx2 + 500)); }