Rename Globals

Renames top-level variables, turn this off for web-related scripts. Enabled by default.

Option name: "renameGlobals"

Option values: true/false/Function


Custom Implementation

options.renameGlobals(varName)

Control which global names are changed. Returns a boolean.

Parameter Type Description
varName string The global name proposed to be changed.

Usage Example

The provided code example will obfuscate the file input.js and write the output to a file named output.js.

Usage Example


Enabled In