Renames top-level variables, turn this off for web-related scripts. Enabled by default.
Option name: "renameGlobals"
Option values: true/false/Function
Control which global names are changed. Returns a boolean.
Parameter | Type | Description |
---|---|---|
varName | string | The global name proposed to be changed. |
The provided code example will obfuscate the file input.js and write the output to a file named output.js.
Usage Example