sindresorhus/
Run some code when the process exits
USD raised
Recent activities
Support for removing exit hooks
Should `minimumWait` be `maximumWait` ?
exit code passed to `gracefulExit()` not working
process.exitCode is ignore
ERR_REQUIRE_ESM
Make `gracefulExit` return `never` instead of `void`
Feature request: Ability to use custom logger
Incorrect docs
Make `gracefulExit()` return a Promise
Node stdout/stderr buffer flushing is still a problem. Wait for console.log to complete before exit
Allow async code
It does not catch 'nodemon' reload.
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.