Skip to content
JS
Package

on-exit-leak-free

Execute a function on exit without leaking memory, allowing all objects to be garbage collected

v2.1.2, 3 Oct 2023MITCommonJSTypes: None
$ npm install on-exit-leak-free

Key numbers

As of 25 Sept 2026
Weekly downloads
27.6m
+185% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v2.1.2
GitHub stars
145
7 forks
Open issues / PRs
3 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 36.8m (25 Aug 2026)Low 6.3m (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.

27,631,087 downloads last week, 127,237,106 in the last month. The 12-month change of +185% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
2.1.2, 3 Oct 20232 years ago
First published
7 Jul 2021
Last push to GitHub
28 Apr 2024879 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
51

Major versions

  1. v2 first release 2.0.0, 22 Jun 2022
  2. v1 first release 1.0.0, 31 May 2022
  3. v0 first release 0.1.0, 7 Jul 2021

Recent releases

VersionPublished
2.1.23 Oct 2023
2.1.12 Oct 2023
2.1.022 Jun 2022
2.0.022 Jun 2022
1.0.031 May 2022
0.2.023 Jul 2021
0.1.07 Jul 2021
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=14.0.0
Runtimes
-
Unpacked size (npm)
9.0 kB
Dependencies (0)
None
npm install on-exit-leak-free
  • jsDelivrhttps://cdn.jsdelivr.net/npm/on-exit-leak-free@2.1.2/
  • unpkghttps://unpkg.com/on-exit-leak-free@2.1.2/
  • esm.shhttps://esm.sh/on-exit-leak-free@2.1.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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