lurq

npm package

Home

module-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

Other utility packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 12, 2026; this page refreshes every 24 hours. Source repository.