
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
electron-path-ipc
Advanced tools
# with npm
$ npm install electron-path-ipc
# with yarn
$ yarn add electron-path-ipc
By default, the main process send a request to all renderer process.
// main process
import {ipcMain} from 'electron-path-ipc';
ipcMain.on(':identifier/action', (headers,...args)=>{
console.log(headers.params); // {identifier: 'my-identifier'}
console.log(args); // ['hello world']
})
// renderer process
import {ipcRenderer} from 'electron-path-ipc';
ipcRenderer.send('my-identifier/action', 'hello world');
You can use invoke/handle in both main and renderer process.
// main process
import {ipcMain} from 'electron-path-ipc';
ipcMain.handle(':identifier/action', (headers, arg) => {
console.log(headers.params); // { identifier: 'my-identifier' }
return `${arg} world !`
})
// renderer process
import {ipcRenderer} from 'electron-path-ipc';
ipcRenderer.invoke('my-identifier/action', 'hello')
.then(console.log) // 'hello world'
You can use prefix to simplify yours requests
// main process
const prefixedIpc = ipcMain.prefix('test/').prefix('test2/');
prefixedIpc.handle(':identifier/action', (headers, arg) => {
return `${arg} world !`
})
// is the equivalent of
ipcMain.handle('test/test2/:identifier/action', (headers, arg) => {
return `${arg} world !`
})
FAQs
Express style path for Electron IPC
We found that electron-path-ipc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.