我可以从缩小版本和相应的源映射文件重新构建原始JavaScript源文件吗? [英] Can I re-construct the original JavaScript source file from a minified version and the corresponding source-map file?
本文介绍了我可以从缩小版本和相应的源映射文件重新构建原始JavaScript源文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开展一个项目,我必须静态分析JavaScript代码。但是,对于一些库,我只能访问文件的缩小版本和相应的源映射。有没有一种方法/技术可以使用这些文件生成原始文件?
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?
推荐答案
我找到了一个node.js库这可以帮助做到这一点:最大化
对应 github repo
I found a node.js library that can help do this: Maximize Corresponding github repo
这篇关于我可以从缩小版本和相应的源映射文件重新构建原始JavaScript源文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文