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!<p>I could probably build this myself:<p>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.<p>Hopefully somebody else has already done this though?
The closest I know of for name and type recovery was <a href="https://www.sri.inf.ethz.ch/publications/raychev2015predicting" rel="nofollow">https://www.sri.inf.ethz.ch/publications/raychev2015predicti...</a> <a href="http://www.jsnice.org/" rel="nofollow">http://www.jsnice.org/</a>