electron-devtools-vendor
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

electron-devtools-vendor

MIT GitHub repo size Npm version

Feature

unrecognized manifest key warning

when using this library, you will not see the following warning:

Unrecognized manifest key 'browser_action'.
Unrecognized manifest key 'minimum_chrome_version'.
Unrecognized manifest key 'short_name'.
Unrecognized manifest key 'update_url'.
Permission 'activeTab' is unknown or URL pattern is malformed.
Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.

namespace with current repo

it will not download the crx to a directory on the current computer, but will contain the source code of the plugin directly in the node_modules

Don't worry about the size of your project, as you should only use it in a development environment, and even if you need to use it in a formal environment, we have tree snaking to help.

network

because the plugin source code is in node_modules, it will have a greater success rate of downloading.

Install

$ yarn add electron-devtools-vendor -D
// or
$ npm install electron-devtools-vendor -D
// or
$ pnpm add electron-devtools-vendor -D

Usage

const { session } = require("electron");

if (process.env.NODE_ENV === "development") {
    const { REACT_DEVELOPER_TOOLS } = require("electron-devtools-vendor");
    session.defaultSession.loadExtension(REACT_DEVELOPER_TOOLS, {
        allowFileAccess: true,
    });
}

Extension List

name import name hash
REACT_DEVELOPER_TOOLS react-developer-tools fmkadmapgofadopljbjfkapdkoienihi
EMBER_INSPECTOR ember-inspector bmdblncegkenkacieihfhpjfppoconhi
VUEJS_DEVTOOLS vuejs-devtools nhdogjmejiglipccpnnnanhbledajbpd
REDUX_DEVTOOLS redux-devtools lmhkpmbekcpmknklioeibfkpmmfibljd
APOLLO_DEVELOPER_TOOLS apollo-developer-tools jdkknkkbebbapilgoeccciglkfbmbnfm
MOBX_DEVTOOLS mobx-devtools pfgnfdagidkfgccljigdamigbcnndkod
JQUERY_DEBUGGER jquery-debugger dbhhnnnpaeobfddmlalhnehgclcmjimi
BACKBONE_DEBUGGER backbone-debugger bhljhndlimiafopmmhjlgfpnnchjjbhd

Add New Extension

# this is example
$ yarn run add fmkadmapgofadopljbjfkapdkoienihi --name react-devtools

Other

Thanks to electron-devtools-installer for the inspiration, it was great but there were a few issues that forced me to develop this project, details can be found at: electron-devtools-installer#200

Package Sidebar

Install

npm i electron-devtools-vendor

Weekly Downloads

163

Version

2.1.0

License

MIT

Unpacked Size

35.1 MB

Total Files

578

Last publish

Collaborators

  • black_hole