Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Anybody Know of an AI / LLM Based JavaScript Unminifier?
1 point by mfbx9da4 on April 22, 2023 | hide | past | favorite | 2 comments
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?




Cool project!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: