Closed 3052 closed 9 months ago
You can use prettier to reformat the deobfuscated script
npm install --global prettier
prettier --print-width 80 --write script.cleaned.js
--print-width 80
sets the desired line length
--write
replaces script.cleaned.js on disk
I am aware that other tools are available, I am wanting this option to be built into synchrony if possible, similar to the other tools above
I removed prettier from the tool in 2.4.4 to reduce complexity
It is possible to achieve the same result as prettier --print-width 80 --write script.cleaned.js
by modifying src/cli.js and invoking prettier before the fs.writeFile call on L87
no thanks, I will just use one of the alternatives I listed above
using this input:
I get this output:
using another tool, I get:
https://richsnapp.com/tools/code-unmangler
or with another tool, I get:
https://restringer.tech
is is possible for Synchrony to also break long lines?