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.

Variable Exclusion List

  • VariableExclusion
  • Free

Variable Exclusion List lets you define which identifiers should never be renamed during name mangling.

How to define exclusions

The setting is a multi-line list of regular expressions. Each line represents one matching rule.

^myname$
^myvalue$

Example

Source code:

function () {
    var myname;
    var myvalue;
    var hello;
}

Output with the exclusions above:

function () {
    var myname;
    var myvalue;
    var a;
}
Regex note: the matching is case-sensitive. Use patterns like ^my_ to protect all identifiers that start with a shared prefix.