npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@daltonmenezes/electron-devtools-installer

v1.0.1

Published

An easy way to install Dev Tools extensions into Electron apps

Downloads

8

Readme

Electron DevTools Installer

npm npm license

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.

Features beyond the original repository

  • Custom session partition support

Install

npm i @daltonmenezes/electron-devtools-installer -D

or

yarn add @daltonmenezes/electron-devtools-installer -D

Usage

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

import installExtension, { REACT_DEVELOPER_TOOLS } from '@daltonmenezes/electron-devtools-installer';

// Or if you can not use ES6 imports

/**
const { default: installExtension, REACT_DEVELOPER_TOOLS } = require('@daltonmenezes/electron-devtools-installer');
*/

const { app } = require('electron');

app.whenReady().then(() => {
  installExtension(REACT_DEVELOPER_TOOLS, {
      forceDownload: false,
      sessionId: 'persist:my-app', // custom session partition
      loadExtensionOptions: {
        allowFileAccess: true,
      },
    })
    .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 '@daltonmenezes/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.

Credits