@yakies/electron-ipc
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i @yakies/electron-ipc

Weekly Downloads

1

Version

0.0.3

License

none

Unpacked Size

192 kB

Total Files

22

Last publish

Collaborators

  • chumahtung