sindresorhus/
Run some code when the process exits
USD raised
Recent activities
Support for removing exit hooks
It does not catch 'nodemon' reload.
exit code passed to `gracefulExit()` not working
process.exitCode is ignore
ERR_REQUIRE_ESM
Make `gracefulExit` return `never` instead of `void`
Incorrect docs
Make `gracefulExit()` return a Promise
Should `minimumWait` be `maximumWait` ?
Allow async code
asyncExitHook API is documented incorrectly in readme
Optional chaining requires Node 14+
v3.1.0: exit-hook causes scripts to exit with error code 128 instead of 0
gracefulExit() always prints SYNCHRONOUS TERMINATION NOTICE
Cannot use require on the module
Comparison to signal-exit
Pass the signal to the hook?
© 2019 BoostIO, Inc.