Rename Labels

Renames labeled control-flow statements, and removes unnecessary labels. Enabled by default.

Option name: "renameLabels"

Option values: true/false/Function


Input / Output

This example showcases how Rename Labels transforms the code. Try it out by changing the input code and see changes apply in real-time.

Input.js

Loading...

Output.js

Loading...

Custom Implementation

options.renameLabels(labelName)

Control which label names are changed. Returns a boolean.

Parameter Type Description
labelName string The label 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

Loading...

Enabled In