Skip to content
JS
Package

before-after-hook

asynchronous before/error/after hooks for internal functionality

v4.0.0, 12 May 2025Apache-2.0ESM onlyTypes: Bundled
$ npm install before-after-hook

Key numbers

As of 25 Sept 2026
Weekly downloads
24.8m
+115% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v4.0.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

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

24,779,338 downloads last week, 122,776,964 in the last month. The 12-month change of +115% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
021 in total
Latest version
4.0.0, 12 May 20251 year ago
First published
7 Dec 2016
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
406

Major versions

  1. v4 first release 4.0.0, 12 May 2025
  2. v3 first release 3.0.0, 4 Oct 2022
  3. v2 first release 2.0.0, 9 Jul 2019
  4. v1 first release 1.0.0, 7 Dec 2016

Recent releases

VersionPublished
4.0.012 May 2025
3.0.26 Oct 2022
3.0.14 Oct 2022
3.0.04 Oct 2022
2.2.34 Oct 2022
2.2.24 Jun 2021
2.2.15 Apr 2021
2.2.05 Mar 2021
2.1.131 Jan 2021
2.1.012 Jul 2019
2.0.19 Jul 2019
2.0.09 Jul 2019
1.4.04 Mar 2019
1.3.211 Jan 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
35 kB
Dependencies (0)
None
npm install before-after-hook

CDN

jsDelivr: 60.1k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/before-after-hook@4.0.0/
  • unpkghttps://unpkg.com/before-after-hook@4.0.0/
  • esm.shhttps://esm.sh/before-after-hook@4.0.0
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.