Renames labeled control-flow statements, and removes unnecessary labels. Enabled by default.
Option name: "renameLabels"
Option values: true/false/Function
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
Output.js
Control which label names are changed. Returns a boolean.
Parameter | Type | Description |
---|---|---|
labelName | string | The label name proposed to be changed. |
The provided code example will obfuscate the file input.js and write the output to a file named output.js.
Usage Example