8 lines
344 B
JavaScript
8 lines
344 B
JavaScript
const fs = require('fs');
|
|
const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8');
|
|
|
|
// Find template definitions
|
|
const matches = content.match(/resources:\s*\[\s*\{[^\]]+\}\s*\]/g) || [];
|
|
console.log('Matches:', matches.length);
|
|
matches.slice(0, 5).forEach(m => console.log('---', m.substring(0, 200)));
|