You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
A better way to detect a process is terminating #42
Some Background
Part of the motivation of building
NODE_V8_COVERAGEinto core, was that it made it significantly easier to capture exit behavior.Prior to this, tools like nyc used error-prone hacks like, signal-exit to detect process termination.
Proposal
It would be nice to have an API hook that fires when Node.js is about to terminate, regardless of whether it's:
related conversations: https://github.com/nodejs/node/issues/29480, nodejs/node#28960
Just wanted to kick off this conversation (@sindresorhus actually brought it up initially), CC: @coreyfarrell, @isaacs.