Documentation

JavaScript Obfuscator docs

Reference guides for command-line usage, protection options, cross-file workflows, and the desktop app.

Inside The Docs

Practical guides, not placeholder pages.

How-to guides Start with command-line usage, then move into feature-specific references.
Advanced protection Browse cross-file obfuscation topics like Replace Globals and Protect Members.

Move Nested Function

  • MoveNested
  • Enterprise

Move Nested Function lifts anonymous or nested function expressions out of their original location so the final output exposes less obvious structure.

Example

Before:

a.onclick(function () {});
b = { onclick: function () {} };

After the function references are separated:

a.onclick(c);
b = { onclick: d };

Why it helps

Anonymous functions often reveal intent because the logic sits directly beside the call site. Moving those functions away makes the output less readable and works especially well with Flat Transform.

Best pair: enable this together with the stronger structure options when you want the final code to look much less like the original source layout.