3 ms·
Ask HN: 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 3y agoThe closest I know of for name and type recovery was https://www.sri.inf.ethz.ch/publications/raychev2015predicting https://www.sri.inf.ethz.ch/publications/raychev2015predicti... http://www.jsnice.org/ http://www.jsnice.org/
- mfbx9da4 3y agoCool project!