Nutritious Polygonal Meatball

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

    1.8.7 • Public • Published

    🔍 electron-search-devtools

    GitHub license npm jest GitHub top language

    Locate the installed developer tools for Electron.

    ⚠️ Requirements

    📥 Installation

    npm install electron-search-devtools --save-dev

    🛠️ Usage

    // Load `session` and this module.
    import { BrowserWindow, app, session } from 'electron';
    import { searchDevtools } from 'electron-search-devtools';
    
    app.whenReady().then(() => {
      new BrowserWindow().loadFile('index.html');
    
      // 'REACT', 'REDUX', 'VUE', 'VUE3', 'ANGULAR' or 'JQUERY'
      searchDevtools('REACT').then((devtools) => {
        /**
         * If you want to use `loadFile` instead of `loadURL`,
         * you will need to set `allowFileAccess` to true.
         */
        session.defaultSession.loadExtension(devtools, { allowFileAccess: true });
      });
    });
    
    app.once('window-all-closed', () => app.quit());

    📗 API

    searchDevtools: (arg: Devtools, options?: Options | undefined) => Promise<string>;
    
    Devtools: 'JQUERY' | 'ANGULAR' | 'VUE' | 'VUE3' | 'REACT' | 'REDUX';
    Options: {
        profile?: string;
        browser?: 'google-chrome' | 'chromium';
    }

    Devtools

    Type: 'REACT' | 'REDUX' | 'VUE' | 'VUE3' | 'ANGULAR' | 'JQUERY' (required)

    Options

    profile

    • Type: string
    • Default: 'Default'

    browser (only on Linux)

    • Type: 'google-chrome' | 'chromium'
    • Default: 'google-chrome'

    If you are using Chromium on Linux, specify chromium.

    ©️ Copyright

    Copyright (c) 2021 sprout2000

    Install

    npm i electron-search-devtools

    DownloadsWeekly Downloads

    341

    Version

    1.8.7

    License

    MIT

    Unpacked Size

    11.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • sprout2000