
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
electron-process
Advanced tools
Send blocking operations to a background process. Example application available here.
npm install --save electron-process
electron-process
uses a hidden BrowserWindow
to do all the blocking operations that your heart desires. Create the background process in the main electron process, register modules you wish to run in the background, then call those functions within the BrowserWindow
s that you consider the foreground.
const main = require('electron-process').main;
app.on('ready', function() {
const backgroundURL = 'file://' + __dirname + '/background.html';
const backgroundProcessHandler = main.createBackgroundProcess(backgroundURL, true);
mainWindow = new BrowserWindow({width: 1280, height: 600});
backgroundProcessHandler.addWindow(mainWindow);
mainWindow.loadURL('file://' + __dirname + '/foreground.html');
});
const foreground = require('electron-process').foreground;
const someModule = foreground.getModule(require('./someModule'));
someModule.doStuff()
.then((result) => console.log(result));
const background = require('electron-process').background;
background.registerModule(require('./someModule'));
FAQs
Send blocking operations to a background process in electron
The npm package electron-process receives a total of 4 weekly downloads. As such, electron-process popularity was classified as not popular.
We found that electron-process 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
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.