Skip to main content

Module js_analyzer

Module js_analyzer 

Source
Expand description

JavaScript bundle analyzer for API endpoint discovery.

Fetches JavaScript bundle files referenced in HTML <script src="..."> tags and analyzes them for API endpoints using regex-based pattern matching. This is a best-effort enrichment layer — if bundles are too large or minified beyond recognition, it degrades gracefully by returning an empty result set.

Functions§

extract_script_urls
Extract all <script src="..."> URLs from HTML and resolve them against the base URL.
fetch_and_analyze_scripts
Fetch JavaScript bundles referenced in HTML and analyze them for API endpoints.