A CLI tool to reconstruct original source files from minified code and sourcemaps
npm install sourcemap-reverserA command-line tool to reconstruct original source files from minified code and source maps.
To install sourcemap-reverser globally, run:
``bash`
npm install -g sourcemap-reverser
`bash`
sourcemap-reverser --minified
- -m, --minified : Path to the minified code (required)-s, --sourcemap
- : Path to the source map (default: )-o, --output
- : Path to the output directory where the reconstructed source files will be saved (required)
`bash`
sourcemap-reverser --minified assets/minified.js --sourcemap assets/minified.js.map --output results/sources
This command will read the minified code from assets/minified.js and the source map from assets/minified.js.map, then reconstruct the original source files and save them to the results/sources` directory.
MIT