Skip to main content
Option: transforms.renameIdentifiers

What it changes

Renames bindings and labels with the configured string generator while avoiding name capture.

Before and after

Configuration

Run this transform by setting transforms.renameIdentifiers to true or an options object:
obfuscate.mjs
Pass { stringGeneratorMode } instead of true to override its generated string style.

View the implementation

Open the TypeScript implementation on GitHub.

Read the behavior tests

Review behavior checks and cases this transform leaves alone.
Last modified on August 26, 2026