开发者

What is the best free JavaScript obfuscator that is available as a javascript library or python library

i Follow this article :Free JavaScript obfuscators?

to find a javascript-obfuscators that can help me to obfuscate some javascript data on the client side .

but i find these chooses are all not python or javascript lib,they use java,

and i use django , so i want to know ,

What is the best free JavaScript obfuscator that is available as a javascript library or python library.

开发者_如何学编程thanks


UglifyJS works with Node.js (or anything else that supports CommonJS), and if I say it works then I mean "It just works", most of the time the resulting code is smaller than the one you get with, for example, Googles Closure compiler. And you don't have to worry about it breaking your code if you don't specify which properties / objects etc. it should not rename, and it's really fast too.


You can use UglifyJS, but if you want to call it from Python, do this:

sudo apt-get install node-uglify - install
uglifyjs --overwrite filename.js - test

And, in Python:

from subprocess import call
call(["uglifyjs", "--overwrite", "filename.js"])

Now you can minimize/obfuscate your Javascript code from Python.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜