• Stars
    star
    1,039
  • Rank 44,349 (Top 0.9 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An easy way to ensure Chrome DevTools extensions into Electron

Electron DevTools Installer

CircleCI npm npm license CFA Enabled

This is an easy way to install DevTool extensions into Electron. You shouldn't have to mess around with downloading the extension, finding the right folder and then configuring the path for everyone's machines.

Install

npm install electron-devtools-installer --save-dev

or

yarn add electron-devtools-installer -D

Usage

All you have to do now is this in the main process of your application.

import installExtension, { REDUX_DEVTOOLS } from 'electron-devtools-installer';
// Or if you can not use ES6 imports
/**
const { default: installExtension, REACT_DEVELOPER_TOOLS } = require('electron-devtools-installer');
*/
const { app } = require('electron');

app.whenReady().then(() => {
    installExtension(REDUX_DEVTOOLS)
        .then((name) => console.log(`Added Extension:  ${name}`))
        .catch((err) => console.log('An error occurred: ', err));
});

To install multiple extensions, installExtension takes an array.

What extensions can I use?

Technically you can use whatever extension you want. Simply find the ChromeStore ID of the extension you want to install, and call installExtension('YOUR_ID_HERE'). We offer a few extension ID's inside the package so you can easily import them to install without having to find them yourselves.

import installExtension, {
  EMBER_INSPECTOR, REACT_DEVELOPER_TOOLS,
  BACKBONE_DEBUGGER, JQUERY_DEBUGGER,
  ANGULARJS_BATARANG, VUEJS_DEVTOOLS,
  VUEJS3_DEVTOOLS, REDUX_DEVTOOLS,
  CYCLEJS_DEVTOOL, MOBX_DEVTOOLS,
  APOLLO_DEVELOPER_TOOLS,
} from 'electron-devtools-installer';

How does it work?

Well, you know those steps over in the Electron Docs that involve downloading, copying, checking paths, Etc.

This does all of that for you, it downloads the chrome extension directly from the Chrome WebStore. Then it extracts it to your applications userData directory before loading it into Electron.

License

The MIT License (MIT)

Copyright (c) 2016 Samuel Attard

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

Google-Play-Music-Desktop-Player-UNOFFICIAL-

A beautiful cross platform Desktop Player for Google Play Music
JavaScript
8,282
star
2

react-electron-web-view

A simple wrapper to make Electrons WebView compatible with React
JavaScript
61
star
3

electron-routes

Express like API for hosting content inside an Electron app
JavaScript
40
star
4

probot-issue-duplicate-detection

A probot plugin for automatic issue duplicate detection
JavaScript
34
star
5

electron-media-service

OS Media Service integration for Electron apps
Objective-C++
34
star
6

node-lowlevel-keyboard-hook-win

Low level keyboard hook for node.js
C++
34
star
7

OpenLog

Track client side Javascript errors in real time.
JavaScript
27
star
8

dotprejs

Pre-compile your JS bundles to improve boot performance in Node.JS or Electron
JavaScript
22
star
9

electron-test-utils

Test Utilities to help with Electron App Testing
JavaScript
11
star
10

now-you-see-me

PNG Stenography for the browser
TypeScript
11
star
11

plex-mia

Find those missing episodes from your plex box
TypeScript
11
star
12

galactus

Destroy certain types of modules from your node_modules folder
TypeScript
9
star
13

prebuild-this

Automagically setup prebuild for your native modules
TypeScript
8
star
14

pre-flight

Ensure all core dependencies are up to date before `npm start`
JavaScript
5
star
15

flora-colossus

Walk your node_modules folder
TypeScript
5
star
16

electron-forge-demo123

My amazing demo123 forge app
JavaScript
5
star
17

jason-wanted-a-tree

JavaScript
5
star
18

plex-poster-generator

Generator for consistent and good looking plex posters
HTML
4
star
19

electron-forge-plugin-webpack

JavaScript
4
star
20

cf-prefs

A native node module to access managed app preferences on macOS
Objective-C++
4
star
21

NVM-for-Windows

The NVM we know and love but for windows, no UAC
C#
4
star
22

disable-wikis

A CLI tool to quickly disable wikis for an entire organization
TypeScript
4
star
23

macos-keypress-hook

macOS Keypress Hook for Electron apps
Objective-C++
4
star
24

electron-talk-editor

Super basic "code editor", inspired by @felixrieseberg
JavaScript
4
star
25

Monash-CSGO-Demo-Host

Host CSGO Demo Files
JavaScript
3
star
26

electron-docs-explorer

Quickly dive around the Electron docs in your terminal
TypeScript
3
star
27

valorant-account-switcher

Handy tray application to store and switch valorant accounts
C#
3
star
28

hasher

@electron/hasher
TypeScript
3
star
29

electron-valence

Bridge interfaces across a string based message bridge
TypeScript
3
star
30

hello-world-native

C++
2
star
31

grunt-grover

Run yui tests with grover as a grunt task
JavaScript
2
star
32

docker-apt-ftparchive

Makefile
2
star
33

cec-node-trigger

JavaScript
2
star
34

node-lowlevel-mouse-hook-win

C++
2
star
35

pruner

Prune production dependencies in a package manager agnostic way
TypeScript
2
star
36

docker-dpkg-scansources

Makefile
2
star
37

electron-autoreport-issue-handling-bot

So GPMDP automatically tries to report github issues, let's try not to flood the issues page 👍
JavaScript
2
star
38

docker-serve

Encrypted file serving
JavaScript
2
star
39

advent-of-code-2020

JavaScript
1
star
40

cfa-test

JavaScript
1
star
41

actions-test

1
star
42

check-python-tls

Checks if your version of python supports TLS1.2
Python
1
star
43

LordsWM-Clan-Stats

PHP Web Service thats crawls clan members for their stats
PHP
1
star
44

gh-act-test

JavaScript
1
star
45

esm-async-demo

JavaScript
1
star
46

test-clerk

1
star
47

deployment-tools

Easy bash scripts to deploy a webapp from git to a webserver with minimal downtime
Shell
1
star
48

npm-files-bug

1
star
49

advent-of-code-2019

My solutions to AOC 2019 - Code is bad, presented without any claim to "good code" just "working code"
JavaScript
1
star
50

goma-chromium-platform-image

Autobuild version of the Goma Platform Image
Dockerfile
1
star
51

advent-of-code-2018

I started late, but I'll catch up :D
JavaScript
1
star
52

docker-dpkg-scanpackages

A docker utility for dpkg-scanpackages
Makefile
1
star
53

docker-lftp-sync

Docker image for LFTP sync for unRAID
Shell
1
star
54

forge-server

Shhh, don't tell anyone
CSS
1
star
55

test-unicorn

1
star
56

samuel-attard-dot-com

The code behind my website http://www.samuelattard.com
HTML
1
star