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

javascript, minify, node.js, source-maps

Solution

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

Problem

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?

Original source