sourcemap
sourcemap copied to clipboard
Restore the frontend source code from source maps
sourcemap
Some tools that generate JS code produce "source maps". Source maps allow to restore the original source code from the minified ugly one. You can read more here:
- An Introduction to Source Maps by Treehouse.
- Use a source map by MDN.
- Map Preprocessed Code to Source Code by Chrome.
This tool finds source maps on the given webpage and restores the application source code from it.
Build
git clone https://github.com/orsinium-labs/sourcemap.git
cd sourcemap
go build -o sourcemap .
Use
Feed URLs into stdin:
echo "https://orsinium.dev/" | ./sourcemap --output=./sources