-
Option name:
"pack" -
Option values:
true/false
Input / Output
This example showcases howPack transforms the code. Try it out by changing the input code and see changes apply in real-time.
Input.js
Bypass Strict Mode
ThePack option is designed to bypass strict mode constraints. This is achieved by wrapping the output code in a Function() call. This allows the code to be executed in a different context, where strict mode is not enforced.
Several obfuscation techniques require non-strict mode JavaScript. These include:
- Control Flow Flattening (With Statement)
- Tamper Protection (Eval scope access)
Usage Example
The provided code example will obfuscate the fileinput.js and write the output to a file named output.js.
Usage Example
Enabled In
- High Preset: Yes
- Medium Preset: Yes
- Low Preset: No