@capacitor-community/electron

中文文档
5.0.1发布于 2023/09/21MITTypeScriptCommonJS构建来源已验证近 30 天下载 5.8万

Capacitor community support for the Electron platform!

原始使用文档
文档目录5 节
  1. ⚠ Version 4 or Above Info
  2. 📖 Documentation:
  3. 🔐 Security
  4. 🛠 Maintainers
  5. ✨ Contributors


Bring your Capacitor ⚡ apps to the desktop with Electron! 🖥

npm GitHub Workflow Status

⚠ Version 4 or Above Info

  • You will need version 5.4.0+ of capacitor.
  • The template and inner workings have changed a lot, a migration guide will be done but for now creating a new project to tinker with before migrating main projects is a good idea.
  • Plugins from previous versions @capacitor-community/electron will not function in V4 or above, however all web plugins will continue to function as normal.
  • V4 and later comes with no plugins out of the box. Instead V4 and later and above follow Capacitor in seperated plugins, see Plugin Examples Directory for examples.

📖 Documentation:

You can find the docs site here.

🔐 Security

While this platform strives to be inline with current secure practices, there are things outside of this platforms control. Please take the time to read through the security checklist the electron team has created to keep your application as safe and secure as you possibly can.

🛠 Maintainers

MaintainerGitHubSocialSponsoring CompanyPrimary
Mike SummerfeldtIT-MikeS@IT_MikeSVolunteerYes

✨ Contributors


Max Lynch

💻 📖

Mike Summerfeldt

💻 📖

Daniel Sogl

💻

Hervé de CHAVIGNY

💻 📖

Maik Marschner

💻

Stew

💻

Corey Vaillancourt

💻

Julien Goux

💻

MathisTLD

💻

challenger71498

💻

jdgjsag67251

💻

版本与发布记录

@capacitor-community/electron 共发布 98 个版本,首次发布于 2020/06/19;过去 12 个月发布了 0 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.0.1latest2023/09/213 年前
5.0.02023/09/213 年前
5.0.0-next.4next2023/09/213 年前
5.0.0-next.32023/05/133 年前
5.0.0-next.22023/05/123 年前
4.1.22022/06/164 年前

其他发布通道:alpha → 4.0.0-alpha.13,next → 5.0.0-next.4。

关于 @capacitor-community/electron 的常见问题

@capacitor-community/electron 是什么?

Capacitor community support for the Electron platform!

如何安装 @capacitor-community/electron?

在项目目录运行 npm install @capacitor-community/electron,或使用 pnpm add / yarn add / bun add。

@capacitor-community/electron 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@capacitor-community/electron 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@capacitor-community/electron 可以商用吗?

@capacitor-community/electron 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@capacitor-community/electron 的下载量有多少?

根据 npm 官方下载统计,@capacitor-community/electron 在 2026/10/09 – 2026/11/07 这 30 天内被下载 57,695 次,日均约 1,923 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@capacitor-community/electron 还在维护吗?

最新版本 5.0.1 发布于 2023/09/21(3 年前);至今共发布 98 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/06/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。