relative / synchrony

javascript-obfuscator cleaner & deobfuscator
https://deobfuscate.relative.im/
GNU General Public License v3.0
840 stars 108 forks source link

Default transform access #129

Closed rentalhost closed 9 months ago

rentalhost commented 9 months ago

Can I access transforms directly? I want to enable just one, for instance:

await new Deobfuscator().deobfuscateSource(
  code,
  { transformChainExpressions: [new Simplify()] },
);
relative commented 9 months ago

Hi

if you would like to run a single transformer

await (new Deobfuscator()).deobfuscateSource(code, {
  customTransformers: [
    ['Simplify', {} /* options */]
  ]
})

Defining customTransformers in the options disables all other transformers

rentalhost commented 9 months ago

Nice! I was using the wrong option. :D Thanks!