Jump to content
  • Advertisement
Sign in to follow this  
walkingcarcass

Obfusticator

This topic is 4940 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm looking for a program (preferably java, or a script: perl, PHP, bash) which will take a javascript program with regular expressions and strip it of whitespace as well as minimising funciton and variable names, e.g. translate this
var firstvariable;
var secondvariable;
function something(arg1 arg2){
   var localvariable;
   ....
}
var anothervariable;
into something like this
var a;var b;function c(d,e){var f;...}var d;
Know of any? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Thanks, but the google results are largely commercial efforts, targeted at Windows, or are things which seem to fail with little things like unexpected (but legal) line breaks. I'm asking if you've used a good one yourself.

Share this post


Link to post
Share on other sites
I might be wrong, but depending on how complicated the code is(doesn't look to complicated) it shouldn't be too hard to write one. Plus, it would be a great coding exercise.

Cheers - Sagar

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!