HACKER Q&A
📣 mfbx9da4

Anybody Know of an AI / LLM Based JavaScript Unminifier?


I have some large uglified JavaScript bundle which I need to dig through to understand something. It would be great if there was a tool for renaming functions and variables so that the code was a bit more readable. This seems like exactly the kind of task a LLM would be reasonable at. Anything better than one letter names would be extremely useful!

I could probably build this myself:

I've used this tool https://github.com/shapesecurity/unminify which does a decent job at unminifying stuff but I'm sure there are better ones out there but this would make a good first pass and then I could feed it through Codex with some appropriate prompt. The token limit will be an issue but I could just do it in chunks for now.

Hopefully somebody else has already done this though?


  👤 compressedgas Accepted Answer ✓