0.0.3 • Published 3 years ago

@yakies/electron-ipc v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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 Package

> npm install electron-ipc-bridge-factory

Sample

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.