Skip to content

Restore the frontend source code from source maps

License

Notifications You must be signed in to change notification settings

orsinium-labs/sourcemap

Repository files navigation

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:

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