Socket
Socket
Sign inDemoInstall

@00a/plugin.electron

Package Overview
Dependencies
24
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@00a/plugin.electron

Electron功能插件集


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

@00a/plugin.electron

这是一个关于 electron 的插件功能插件集合

安装

$ yarn add @00a/plugin.electron

使用示例

const { chromeExtensions } = require("@00a/plugin.electron");

功能清单

1. 给 Electron 增加 devtools 插件

  • 引入
const { BrowserWindow } = require("electron");
const { chromeExtensions } = require("@00a/plugin.electron");
chromeExtensions(BrowserWindow);
  • 在根目录建立配置文件:

    .chrome-extensions.config.js.chrome-extensions.config.local.js

module.exports = [
  {
    name: "React Developer Tools",
    id: "fmkadmapgofadopljbjfkapdkoienihi", // https://www.electronjs.org/docs/tutorial/devtools-extension
  },
  {
    name: "Redux DevTools",
    id: "lmhkpmbekcpmknklioeibfkpmmfibljd",
  },
];
  • 注意 需要你本地 Chrome 浏览器已经安装相应插件. 原理参考

2. 当前是否在Electron环境中

const { isElectron } = require("@00a/plugin.electron");
isElectron()

发布日志

@00a/plugin.electron严格遵循 Semantic Versioning 2.0.0 语义化版本规范。

发布周期

  • 修订版本号:每周会进行 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
  • 次版本号:不定期发布。
  • 主版本号:含有破坏性更新和新特性,不在发布周期内。

0.0.2

2020-07-07

  • ⚡️ 初始化项目
  • 🌟 增加 chromeExtensions方法

FAQs

Last updated on 07 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc