I know we can write our own, and that there are a couple of existing projects out there, but it would be cool if source-map contained a minimal CLI tool that allowed us to recover the original source of a file, given it's sourcemap'd file.
Eg. Given the following files:
foo.js.map (sourcemap)
foo.js (minified)
I would imagine being able to run it as follows (or similar):
npx source-map foo.js.map > foo.js.orig
See Also
I know we can write our own, and that there are a couple of existing projects out there, but it would be cool if
source-mapcontained a minimal CLI tool that allowed us to recover the original source of a file, given it's sourcemap'd file.Eg. Given the following files:
foo.js.map(sourcemap)foo.js(minified)I would imagine being able to run it as follows (or similar):
npx source-map foo.js.map > foo.js.origSee Also