
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
electron-exit
Advanced tools
Usage:
const electron_exit = require('electron_exit');
// Exit 1 second from now (even if the JavaScript context is destroyed between now and then)
electron_exit.exit(1000);
// Cancel previously issued exit
electron_exit.exitCancel();
// Absolutely exit right now
electron_exit.exit();
console.log('This will never be executed');
Note: issuing any new exit request also cancels the previous one, so calling electron_exit.exit(5000)
once a second will cause the program to exit 4-5 seconds after Electron has hung / frozen.
Note: though this module can be included on any platform, it untested except on Win32.
FAQs
Actually exit Electron apps
We found that electron-exit demonstrated a healthy version release cadence and project activity because the last version was released less than 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.