3行代码搞定页面截图,Bun.WebView真的简单
就 3 行:
await using view new Bun.WebView();
await view.navigate("https://example.com");
await Bun.write("out.png", await view.screenshot());bun run demo.ts完事儿。痛点:装 Puppeteer 太烦
想截个网页图。
npm i puppe…
2026/7/2 20:39:27