Search code examples
javascriptnode.jsminifysource-maps

Can I re-construct the original JavaScript source file from a minified version and the corresponding source-map file?


I am working on a project where I have to statically analyse JavaScript code. However, for a few libraries, I only have access to a minified version of the file and the corresponding source-map. Is there a method/technique with which I can generate the original file using these files?


Solution

  • I found a node.js library that can help do this: Maximize Corresponding github repo