npm package
Homemodule-definition
module-definition determines the module definition type of a JavaScript file, identifying whether it uses CommonJS, AMD, ES6, or none by analyzing the Abstract Syntax Tree (AST). It is useful for projects that need to differentiate module formats for compatibility or tooling purposes.
- lurq health score
- 66/100
- Confidence
- proven
- Weekly downloads
- 3,425,193
- Latest version
- 7.0.0
- Last release
- May 19, 2026
- License
- MIT
Should you depend on module-definition?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks module-definition 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 module-definition
What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.
- 6.0.2 → 7.0.0diff ready
- 5.0.1 → 6.0.2being extracted
- 4.1.0 → 5.0.1being extracted
Other utility packages lurq scores
- dompurify98/100 · proven
- pdfjs-dist95/100 · proven
- puppeteer94/100 · proven
- puppeteer-core93/100 · proven
- @opentelemetry/sdk-trace92/100 · emerging
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 12, 2026; this page refreshes every 168 hours. Source repository.