TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 mfbx9da4大约 2 年前
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

compressedgas大约 2 年前
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 未加载