npm / exit-hook
exit-hook
What changed in exit-hook 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initexit-hook 52 changes
Fixes and other changes 2
The async exit path flushes stdout and stderr before exiting, helping ensure pending output is written.
Fixes gracefulExit() so it honors explicit exit codes.