Skip to content
JS
Package

which-module

Find the module object for something that was require()d

v2.0.1, 21 Apr 2023ISCCommonJSTypes: NoneNode.js utilities
$ npm install which-module

Key numbers

As of 25 Sept 2026
Weekly downloads
37.6m
+57% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v2.0.1
GitHub stars
27
4 forks
Open issues / PRs
0 / 8
Contributors
3
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60mSept 2025Mar 2026Sept 2026High 45.1m (18 Aug 2026)Low 12.9m (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.

37,589,635 downloads last week, 156,401,689 in the last month. The 12-month change of +57% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
03 in total
Latest version
2.0.1, 21 Apr 20233 years ago
First published
6 Jun 2016
Last push to GitHub
21 Apr 20231,252 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
8
Commits, last 52 weeks
0
Dependents on npm
819

Major versions

  1. v2 first release 2.0.0, 1 May 2017
  2. v1 first release 1.0.0, 6 Jun 2016

Recent releases

VersionPublished
2.0.121 Apr 2023
2.0.01 May 2017
1.0.06 Jun 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
3.9 kB
Dependencies (0)
None
npm install which-module
  • jsDelivrhttps://cdn.jsdelivr.net/npm/which-module@2.0.1/
  • unpkghttps://unpkg.com/which-module@2.0.1/
  • esm.shhttps://esm.sh/which-module@2.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.