A small NodeJS tool to extract code from one or more JS or CSS source map file(s) and re-create the structure of the original source files.
This is just a small tool for my own purposes to make viewing the original code from a source map easier.
As this tool relies on the fs-extra
module, please ensure you run npm install
to install the necessary modules first.
node extract.js /path/to/sourceMapFile1 /path/to/sourceMapFile2 /path/to/sourceMapFile3
The tool can accept one or more command-line arguments, each representing the path to a source map file.