Socket
Socket
Sign inDemoInstall

electron-ipc-renderer-extend

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-ipc-renderer-extend

Provides a simpler use for ipcRenderer in electron


Version published
Maintainers
1
Created
Source

electron-ipc-renderer-extend

This package provides a simpler use for ipcRenderer in electron

Install

This package can install via npm

npm install electron-ipc-renderer-extend

Example

1. Trigger one event with no data need to send

const IpcRendererExt =  require('electron-ipc-renderer-extend');

IpcRendererExt.on('EVENT_NAME');

2. Trigger one event with attack data

const IpcRendererExt =  require('electron-ipc-renderer-extend');
const data = {name: 'example', type: 'string'}
IpcRendererExt.on('EVENT_NAME',data);

3. Trigger one event with attack data and callback when event reply

const IpcRendererExt =  require('electron-ipc-renderer-extend');
const data = {name: 'example', type: 'string'}
IpcRendererExt.on('EVENT_NAME',data, (event, data)=> {
	console.log(data)
});
ipcMain need to reply with the same event name if you are using this pagekage

FAQs

Package last updated on 23 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc