0.0.3 • Published 1 year ago

sourcemap-reverser v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

sourcemap-reverser

A command-line tool to reconstruct original source files from minified code and source maps.

Installation

To install sourcemap-reverser globally, run:

npm install -g sourcemap-reverser

Usage

sourcemap-reverser --minified <minified_code_path> --sourcemap <source_map_path> --output <output_directory>

Options

  • -m, --minified <path>: Path to the minified code (required)
  • -s, --sourcemap <path>: Path to the source map (default: <minified_code_path>.map)
  • -o, --output <path>: Path to the output directory where the reconstructed source files will be saved (required)

Example

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.

License

MIT

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago