Documentation

Guides for protecting production JavaScript

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

Inside The Docs

Practical guides, not placeholder pages.

How-to guides Start with release sequencing and command-line usage, then move into feature-specific references.
Advanced protection Browse cross-file controls like Replace Globals and Protect Members when a build spans multiple scripts.

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.