For the ones that don't want to know all the transformations available, it is possible to obfuscate JavaScript selecting language targets rather than transformations.

The available targets are:

  • booleans
  • controlFlow
  • functions
  • identifiers
  • numbers
  • objects
  • predicates
  • regularExpressions
  • statements
  • strings
  • variables

For instance, if you want to obfuscate functions you'll just need to enable the target functions. Targets are then converted to a subset of transformations that target that language construct. This subset of transformations is selected taking both performance and file size impact into consideration.

For instance the following example:

// @jscrambler target functions
function foo () {}

Will enable a subset of transformations that target the function construct.