Reconstruct javascript projects from sourcemaps.
Find a file
History 2026-04-19 14:15:17 -04:00
src Remove old code. 2026-03-21 00:25:46 -04:00
.gitignore Initial commit 2026-03-21 00:24:26 -04:00
Cargo.lock Initial commit 2026-03-21 00:24:26 -04:00
Cargo.toml Add authors field to Cargo.toml 2026-04-19 14:15:17 -04:00
LICENSE Update copyright holder in LICENSE file 2026-04-04 20:44:13 -04:00
README.md Update README.md 2026-03-21 22:29:31 -04:00

sunmap

I was dissatisfied with the existing solutions for extracting sourcemaps. They kept cluttering my system by naively joining paths with multiple level-up notations, extracting things to parent directories.

This tool will handle such cases by analyzing all paths, and then creating a base directory such that nothing gets extracted outside of the specified output directory.

Usage

sunmap rebuild --source-map path/to/sourcemap.js.map --out-dir ./project
# or
sunmap rebuild --source-map-dir directory/of/sourcemaps --recursive --out-dir ./project