Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
497 views
in Technique[技术] by (71.8m points)

javascript - 最小化/解压缩JavaScript的工具[关闭](Tool to Unminify / Decompress JavaScript [closed])

Are there any command line scripts and/or online tools that can reverse the effects of minification similar to how Tidy can clean up horrific HTML?(是否有任何命令行脚本和/或在线工具可以逆转缩小效果,类似于Tidy如何清除可怕的HTML?)

(I'm specifically looking to unminify a minified JavaScript file, so variable renaming might still be an issue.)((我特别希望缩小压缩的JavaScript文件的大小,因此变量重命名可能仍然是一个问题。))   ask by Andy Ford translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can use this : http://jsbeautifier.org/ But it depends on the minify method you are using, this one only formats the code, it doesn't change variable names, nor uncompress base62 encoding.(您可以使用此方法: http : //jsbeautifier.org/但这取决于您使用的minify方法,该方法仅格式化代码,不更改变量名,也不解压缩base62编码。)

edit: in fact it can unpack "packed" scripts (packed with Dean Edward's packer : http://dean.edwards.name/packer/ )(编辑:实际上,它可以解压缩“打包的”脚本(与Dean Edward的打包器打包在一起: http : //dean.edwards.name/packer/ ))

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...