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