# Install detective with npm

find all require() calls by walking the AST. Version 5.2.1 via npm; verified 2022-05-27.

## Install

```sh
sudo av install npm:detective
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g detective
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:detective
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/detective>
- **Version:** 5.2.1
- **Source summary:** find all require() calls by walking the AST
- **Homepage:** <https://github.com/browserify/detective#readme>
- **Repository:** <https://github.com/browserify/detective>
- **Upstream docs:** <https://github.com/browserify/detective#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/detective/-/detective-5.2.1.tgz>
- **Issue tracker:** <https://github.com/browserify/detective/issues>
- **Published:** 2022-05-27T16:02:49.450Z
- **Last updated:** 2022-05-27T16:02:49.450Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- detective (cli)
- detective (alias)

## Dependencies

- acorn-node
- defined
- minimist

## Build dependencies

- tap

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.2.1
- Package-manager updated: 2022-05-27
- Local data: ok
- Upstream repository: https://github.com/browserify/detective
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for detective. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 5.2.1
- **Version Count:** 41
- **Maintainers:** feross, gkatsev, zertosh, mafintosh, maxogden, thlorenz, terinjokes, jmm, mellowmelon, ashaffer88, balupton, cwmma
- **Author:** James Halliday
- **Publisher:** bret
- **Engines:** Node: >=0.8.0
- **Integrity:** sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==
- **Shasum:** 6af01eeda11015acb0e73f933242b70f24f91034
- **Unpacked Size:** 20,760
- **File Count:** 0
- **Created At:** 2011-06-18T01:14:25.709Z
- **Latest Published At:** 2022-05-27T16:02:49.450Z
- **Modified At:** 2022-11-11T06:34:26.964Z


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Matched curated package taxonomy and local package facts.
- [detective-amd](https://www.automicvault.com/pkg/npm/detective-amd/) - Both packages touch the same language runtime or ecosystem. Shared terms: all, ast, detective, find, node.
- [find-requires](https://www.automicvault.com/pkg/npm/find-requires/) - Local package facts share a topical domain. Shared terms: all, analyze, ast, calls, detective.
- [undeclared-identifiers](https://www.automicvault.com/pkg/npm/undeclared-identifiers/) - Both packages touch the same language runtime or ecosystem. Shared terms: acorn, acorn-node, ast, find, node.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
