A replacement for process.exit that ensures stdio are fully drained before exiting.
when you want to fire an event no matter how a process exits.
Execute a function on exit without leaking memory, allowing all objects to be garbage collected
A replacement for process.exit that ensures stdio are fully drained before exiting.
Lightweight, dependency-free JavaScript utility for detecting exit-intent. Fires a single custom event when the user looks like they're about to leave – based on time-on-page, idle time, mouse-leave, tab visibility & window blur. Perfect for pop-ups, surv