Identifier Generator

Determines how variables are renamed.

Option name: "identifierGenerator"

Option values: "hexadecimal"/"randomized"/"zeroWidth"/"mangled"/"number"/Function


Modes
Mode Description Example
"hexadecimal" Random hex strings _0xa8db5
"randomized" Random characters w$Tsu4G
"zeroWidth" Invisible characters U+200D
"mangled" Alphabet sequence a, b, c
"number" Numbered sequence var_1, var_2
<function> Write a custom name generator See Below

Custom Implementation

options.identifierGenerator()

Customize the new variables name of the program. Returns a string.

Options.js


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

See Also