TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Anybody Know of an AI / LLM Based JavaScript Unminifier?

1 pointsby mfbx9da4about 2 years ago
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&#x27;ve used this tool https:&#x2F;&#x2F;github.com&#x2F;shapesecurity&#x2F;unminify which does a decent job at unminifying stuff but I&#x27;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?

1 comment

compressedgasabout 2 years ago
The closest I know of for name and type recovery was <a href="https:&#x2F;&#x2F;www.sri.inf.ethz.ch&#x2F;publications&#x2F;raychev2015predicting" rel="nofollow">https:&#x2F;&#x2F;www.sri.inf.ethz.ch&#x2F;publications&#x2F;raychev2015predicti...</a> <a href="http:&#x2F;&#x2F;www.jsnice.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.jsnice.org&#x2F;</a>
评论 #35666728 未加载