relative / synchrony

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

[request] More detailed return value from deobfuscateSource #27

Open gwittel opened 2 years ago

gwittel commented 2 years ago

In using the tool at API level, it would be really helpful to know if (and what) obfuscations were found. This is somewhat equivalent of capturing the "Found" logs that show up. Effectively I'm looking for an API that returns more than the deobfuscated source. Perhaps an object with the source, foundObfuscations: bool, maybe location pointers as well.

Given this would be API breaking, it seems like it may make more sense to expose a separate function.

I'm happy to help with a PR, but wanted to check interest and direction before proceeding.