npm package
Homedetective-cjs
Detective-cjs is a tool for extracting the dependencies of CommonJS modules by analyzing their Abstract Syntax Tree (AST). It is particularly useful when you need to identify top-level requires in your JavaScript files, including support for JSX and ES7 features.
- lurq health score
- 69/100
- Confidence
- proven
- Weekly downloads
- 3,410,079
- Latest version
- 7.0.0
- Last release
- May 19, 2026
- License
- MIT
Should you depend on detective-cjs?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks detective-cjs at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Upgrading detective-cjs
What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.
- 6.1.1 → 7.0.0diff ready
- 5.0.1 → 6.1.1diff ready
- 4.1.0 → 5.0.1diff ready
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 17, 2026; this page refreshes every 168 hours. Source repository.