Socket
Book a DemoInstallSign in
Socket

@00a/plugin.electron

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@00a/plugin.electron

Electron功能插件集

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
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

Package last updated on 07 Jul 2020

Did you know?

Socket

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