ObfuscateJS is a tool that can be used to obscure JavaScript code and protect its intellectual property by hiding the actual source code. It is a command-line application that is easy to use and offers powerful obfuscation options.
The use of ObfuscateJS is essential for those working with libraries, as it preserves the API of the JavaScript code. As websites increasingly use AJAX technology, the importance of reducing the size of JavaScript files becomes more critical, which is something that this software is specifically designed to accomplish.
2Vi, the creators of Consyn Framework, developed ObfuscateJS as a free obfuscator in Java, and since then it has become an essential tool for software developers. The software currently removes comments and unnecessary whitespace in order to save disk space. It also renames variable names with a local scope to a shorter version, and as an advanced option, it renames all variables with a specified prefix to a shorter name.
Preserving the API of JavaScript code is crucial, and ObfuscateJS ensures that even the obfuscated script remains functional. This is important when creating libraries such as the Consyn Framework.
When using ObfuscateJS, the following command is used: "java -jar consyntools.jar Obfuscator {src} {dest} {prefix}". The source file is specified with {src}, the output file with {dest}, and the prefix of variables that can be renamed without causing issues with the code with the addition of {prefix}.
With ObfuscateJS, prefixes are optional. When chosen, variable names will be abbreviated with the chosen prefix, and if not chosen, only local variable names will be abbreviated.
ObfuscateJS has some new features in this release. It has fixed an issue that caused variable names at the root level to be renamed. Furthermore, conditional comments are now not removed compared to normal comments, which is an important feature for developers.
Overall, ObfuscateJS is a critical tool to have when working with JavaScript libraries or even just small scripts. It is user-friendly and significantly reduces file size without rendering the files unusable.
Version 0.3.5: N/A