Menu

Getting Started

Help
2010-07-04
2013-04-19
  • Richard Alleman

    Richard Alleman - 2010-07-04

    Hi all,

    I don't have time to write anything lengthy at the moment. Run the following command to get the help text:

        java -jar jymini-1.0.0.jar -help

    I would suggest using mode 3 which will give good compression and reasonable obfuscation. In my opinion, the best output method is to write to a single JavaScript file. Of course, it may not be appropriate to do this.

    Modes 2 and 3 provide obfuscation that cannot be easily reconstructed.

    Mode 1 obfuscates, but the resulting JavaScript can be easily reconstructed, so if the intent of using this tool is to protect your source, then don't use mode 1.

    Mode 2 and 3 require a word file to protect symbols within your JavaScript from being obfuscated. Mode 1 doesn't as all symbols are reconstructed on the client.

    Tests done on 150KB of JavaScript (from 5 JavaScript files into 1) show that the compression for mode 1 was about 32%, mode 2 about 36% and mode 3 about 26% of the total original file size.

    If your resulting JavaScript is less than 10KB, it's probably best to use mode 2.

    Happy minifying!

    Richard

     
  • Richard Alleman

    Richard Alleman - 2010-07-04

    This tool uses One-Jar and Apache Commons CLI. If you're using this tool commercially, please honour their licenses.

     

Log in to post a comment.