mirror of
https://github.com/boronSoftware/sunmap.git
synced 2026-11-17 19:46:14 +00:00
Reconstruct javascript projects from sourcemaps.
- Rust 100%
|
History
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
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