You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

electron-exit

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-exit

Actually exit Electron apps

0.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Actually exit Electron apps

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.

Keywords

win32

FAQs

Package last updated on 15 Feb 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.