Skip to content
JS
Package

exit-hook

Run some code when the process exits

v5.1.0, 4 Feb 2026MITESM onlyTypes: Bundled
$ npm install exit-hook

Key numbers

As of 25 Sept 2026
Weekly downloads
7.4m
+75% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 months ago
v5.1.0
GitHub stars
301
42 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
8

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 10.2m (25 Aug 2026)Low 3.1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

7,360,639 downloads last week, 35,921,630 in the last month. The 12-month change of +75% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
318 in total
Latest version
5.1.0, 4 Feb 20267 months ago
First published
31 Aug 2014
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
8
Dependents on npm
350

Major versions

  1. v5 first release 5.0.0, 13 Oct 2025
  2. v4 first release 4.0.0, 31 Aug 2023
  3. v3 first release 3.0.0, 27 Aug 2021
  4. v2 first release 2.0.0, 24 Mar 2018
  5. v1 first release 1.0.0, 31 Aug 2014

Recent releases

VersionPublished
5.1.04 Feb 2026
5.0.119 Nov 2025
5.0.013 Oct 2025
4.0.031 Aug 2023
3.2.020 Jan 2023
3.1.49 Dec 2022
3.1.38 Dec 2022
3.1.222 Oct 2022
3.1.116 Oct 2022
3.1.023 Aug 2022
3.0.027 Aug 2021
2.2.127 Feb 2021
2.2.016 Apr 2019
2.1.09 Apr 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=20
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (0)
None
npm install exit-hook
  • jsDelivrhttps://cdn.jsdelivr.net/npm/exit-hook@5.1.0/
  • unpkghttps://unpkg.com/exit-hook@5.1.0/
  • esm.shhttps://esm.sh/exit-hook@5.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.