NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #3162 most downloaded on npm
Run some code when the process exits
Latest stable
5.1.0
Last release 9 months ago
04 Feb 2026
Release timing varies
gaps range from 5 weeks to 2.1 years
Most releases are documented
notes for 14 of 18 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
18 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Flush stdout/stderr before exiting in async path 8914906
https://github.com/sindresorhus/exit-hook/compare/v5.0.1...v5.1.0
Fix gracefulExit() to honor explicit exit codes 579612d
gracefulExit() to honor explicit exit codes 579612dhttps://github.com/sindresorhus/exit-hook/compare/v5.0.0...v5.0.1
Fix it to respect process.exitCode (#41) 862f49c
process.exitCode (#41) 862f49c
process.exitCode.https://github.com/sindresorhus/exit-hook/compare/v4.0.0...v5.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Require Node.js 18 (#33) 46baeec
minimumWait option to wait (#33) 46baeec
The amount of time in milliseconds that the
onExitfunction is expected to take. When multiple async handlers are registered, the longestwaittime will be used.
https://github.com/sindresorhus/exit-hook/compare/v3.2.0...v4.0.0
Pass signal to hooks (#25) 9fdc03b
https://github.com/sindresorhus/exit-hook/compare/v3.1.4...v3.2.0
Fix asyncExitHook API documentation and example (#28) 7b1545c
asyncExitHook API documentation and example (#28) 7b1545chttps://github.com/sindresorhus/exit-hook/compare/v3.1.3...v3.1.4
Fix Node.js 12 compatibility a07d684
https://github.com/sindresorhus/exit-hook/compare/v3.1.2...v3.1.3
Treat the natural Node.js process termination as exit code 0 (#24) 69881e7
https://github.com/sindresorhus/exit-hook/compare/v3.1.1...v3.1.2
Fix gracefulExit() (#22) 64e5907
gracefulExit() (#22) 64e5907https://github.com/sindresorhus/exit-hook/compare/v3.1.0...v3.1.1
Add async support (#20) 8e4879a
https://github.com/sindresorhus/exit-hook/compare/v3.0.0...v3.1.0
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/exit-hook/compare/v2.2.1...v3.0.0
Ensure listeners are registered only once (#16) 27afecb
https://github.com/sindresorhus/exit-hook/compare/v2.2.0...v2.2.1
Add TypeScript definition (#12) 09ebd60
https://github.com/sindresorhus/exit-hook/compare/v2.1.0...v2.2.0
Return an unsubscribe function (#11) 835cdb4
https://github.com/sindresorhus/exit-hook/compare/v2.0.0...v2.1.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.