exit-hook

Run some code when the process exits

MIT License

Downloads
9.3M
Stars
275
Committers
9

Bot releases are hidden (Show)

exit-hook - Latest Release

Published by sindresorhus about 1 year ago

Breaking

  • Require Node.js 18 (#33) 46baeec
  • Rename minimumWait option to wait (#33) 46baeec

    The amount of time in milliseconds that the onExit function is expected to take. When multiple async handlers are registered, the longest wait time will be used.

https://github.com/sindresorhus/exit-hook/compare/v3.2.0...v4.0.0

exit-hook -

Published by sindresorhus over 1 year ago

exit-hook -

Published by sindresorhus almost 2 years ago

  • Fix asyncExitHook API documentation and example (#28) 7b1545c

https://github.com/sindresorhus/exit-hook/compare/v3.1.3...v3.1.4

exit-hook -

Published by sindresorhus almost 2 years ago

exit-hook -

Published by sindresorhus almost 2 years ago

  • 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

exit-hook -

Published by sindresorhus about 2 years ago

exit-hook -

Published by sindresorhus about 2 years ago

exit-hook -

Published by sindresorhus about 3 years ago

Breaking

  • Require Node.js 12.20 c640189
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/exit-hook/compare/v2.2.1...v3.0.0

exit-hook -

Published by sindresorhus over 3 years ago

  • Ensure listeners are registered only once (#16) 27afecb

https://github.com/sindresorhus/exit-hook/compare/v2.2.0...v2.2.1

exit-hook -

Published by sindresorhus over 5 years ago

exit-hook -

Published by sindresorhus over 5 years ago

  • Return an unsubscribe function (#11) 835cdb4

https://github.com/sindresorhus/exit-hook/compare/v2.0.0...v2.1.0