chrome-devtools-frontend

中文文档
1.0.1732418发布于 2026/11/03BSD-3-ClauseES Module零依赖构建来源已验证

Chrome DevTools UI

原始使用文档
文档目录4 节
  1. Source code and documentation
  2. Source mirrors
  3. Contact us
  4. Get the latest news

Chrome DevTools frontend

npm package

This repository contains the client side of Chrome DevTools. It contains all the TypeScript and CSS code that runs the DevTools web app.

Source code and documentation

The source code is on chromium.googlesource.com.

The Chromium DevTools documentation tells you how to do these tasks:

  • Set up a DevTools frontend checkout.
  • Use a DevTools frontend checkout.
  • Maintain a DevTools frontend checkout.

The documentation also contains design guidelines and architecture documentation.

Other documentation:

Source mirrors

There is a mirror of the DevTools frontend repository on GitHub.

The DevTools frontend is also available on npm as the chrome-devtools-frontend package. The package does not supply CJS modules or ES modules. Thus, it can be difficult to use this package in other tools. For an example of how to use it, see this file.

The version number of the npm package (for example, 1.0.373466) is the Chromium commit position of the latest frontend Git commit. The version number increases with each Chromium commit. But we publish the package only approximately one time each day.

Contact us

Get the latest news

To get the latest news about DevTools development, do one or more of these steps:

版本与发布记录

chrome-devtools-frontend 共发布 2,256 个版本,首次发布于 2016/02/04;过去 12 个月发布了 194 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.1732418latest2026/11/03今天
1.0.17309712026/10/313 天前
1.0.17297502026/10/304 天前
1.0.17266862026/10/277 天前
1.0.17241402026/10/2311 天前
1.0.17217622026/10/2113 天前

关于 chrome-devtools-frontend 的常见问题

chrome-devtools-frontend 是什么?

Chrome DevTools界面

如何安装 chrome-devtools-frontend?

在项目目录运行 npm install chrome-devtools-frontend,或使用 pnpm add / yarn add / bun add。

chrome-devtools-frontend 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/chrome-devtools-frontend 是否存在。

chrome-devtools-frontend 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

chrome-devtools-frontend 可以商用吗?

chrome-devtools-frontend 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

chrome-devtools-frontend 还在维护吗?

最新版本 1.0.1732418 发布于 2026/11/03(今天);至今共发布 2256 个版本,其中过去 12 个月发布了 194 个;首次发布于 2016/02/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。