8 lines
364 B
JavaScript
8 lines
364 B
JavaScript
const fs = require('fs');
|
|
const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8');
|
|
|
|
// Find occurrences of "type: \"artifact\"" or "source"
|
|
const matches = content.match(/.{0,50}(?:type:\s*["']artifact["']|source:\s*\{).{0,200}/g) || [];
|
|
console.log('Matches:', matches.length);
|
|
matches.forEach(m => console.log('---', m));
|