stringGeneratorMode controls the shape of generated identifiers, labels, property names, and string contents. Set it globally or override it for renameIdentifiers, specialsToStrings, or mangleProperties.
mangled is the default
Compare modes
Select one mode
obfuscate.mjs
Override a transform
renameIdentifiers and specialsToStrings accept an object with their own stringGeneratorMode. Property mangling accepts the same field inside its property options.
obfuscate.mjs
Mix modes
Pass a nonempty array to sample modes uniformly. Repeating a mode increases its weight.obfuscate.mjs
Obfuscator options
See how the global mode fits into
ObfuscatorOptions.Rename identifiers
See generated names applied to bindings and labels.