Skip to content

strisys/electron-ipc-bridge-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron IPC Bridge Factory

A easier way to use Electron's contextBridge API

According to the Electron documentation is best not to enable Node.js Integration. The recommendation is to use preload scripts in combination with Electron's contextBridge API for inter-process communication between main and renderer processes.

> npm install electron-ipc-bridge-factory

Usage is this package is best illustrated in the provided sample. To run:

> git clone https://github.com/strisys/electron-ipc-bridge-factory
> cd cd electron-ipc-bridge-factory/sample
> npm install
> npm start

The sample shows the usage of this package in a preload script along with IPC from both the renderer and main processes.

About

A easier way to use Electron's contextBridge API

Resources

Stars

Watchers

Forks

Packages

No packages published