If a source map is accessible, this script extracts out all of the sources to make them ready for post processing, e.g. in Cursor, grep, or other tools.
- Download sourcemap files from URLs
- Extract all source files with proper directory structure
- Preserve original file paths and content
- Clone this repository or download the files
- Install the required dependencies:
pip install -r requirements.txtpython sourcemap-parse.py https://example.com/ --proxy socks5://127.0.0.1:9001 --extract_sources --output_dir C:\\tmp\\extracted_sources