Skip to content
JS
Package

detective

find all require() calls by walking the AST

v5.2.1, 27 May 2022MITCommonJSTypes: None
$ npm install detective

Key numbers

As of 25 Sept 2026
Weekly downloads
2.9m
-12% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
4 years ago
v5.2.1
GitHub stars
414
59 forks
Open issues / PRs
7 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.7m (21 Oct 2025)Low 1.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.

2,940,236 downloads last week, 11,569,117 in the last month. The 12-month change of -12% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
041 in total
Latest version
5.2.1, 27 May 20224 years ago
First published
18 Jun 2011
Last push to GitHub
21 Dec 2024642 days before the snapshot
Repository archived
No
Open issues
7
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v5 first release 5.0.0, 2 Jan 2018
  2. v4 first release 4.0.0, 19 Nov 2014
  3. v3 first release 3.0.0, 5 Mar 2014
  4. v2 first release 2.0.0, 2 Mar 2013
  5. v1 first release 1.1.0, 25 Feb 2013
  6. v0 first release 0.0.0, 18 Jun 2011

Recent releases

VersionPublished
5.2.127 May 2022
5.2.028 Jan 2019
5.1.028 Feb 2018
5.0.26 Jan 2018
5.0.12 Jan 2018
5.0.02 Jan 2018
4.7.121 Dec 2017
4.7.01 Dec 2017
4.6.026 Nov 2017
4.5.01 Mar 2017
4.4.01 Mar 2017
4.3.222 Oct 2016
4.3.11 Nov 2015
4.3.01 Nov 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.8.0
Runtimes
-
Unpacked size (npm)
20 kB
Dependencies (3)
definedminimistacorn-node
npm install detective
  • jsDelivrhttps://cdn.jsdelivr.net/npm/detective@5.2.1/
  • unpkghttps://unpkg.com/detective@5.2.1/
  • esm.shhttps://esm.sh/detective@5.2.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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