npm · npm:module-definition
module-definition active
Determines if a file is using a CommonJS or AMD module definition
The latest stable version of module-definition is 7.0.0, published on 2026-05-19. Verified by Vigia on 2026-11-12.
| Latest stable version | 7.0.0 |
|---|---|
| Published | 2026-05-19 14:26:09 UTC |
| Install | npm install module-definition@latest |
| Requires (engines) | {"node":">=20.19.0 || >=22.12.0"} |
| Peer dependencies | — |
| Dist-tags | latest: 7.0.0 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 15:52:15 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-05-19 14:26:09 UTC · 177 days ago |
| Stable releases in the last 12 months | 2 |
| Published versions | 33 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
7.0.0 | 2026-05-19 14:26:09 UTC |
6.0.2 | 2026-04-20 04:53:20 UTC |
6.0.1 | 2025-02-01 13:23:22 UTC |
6.0.0 | 2024-04-10 05:38:21 UTC |
5.0.1 | 2023-05-11 06:46:48 UTC |
5.0.0 | 2023-05-04 19:07:15 UTC |
4.1.0 | 2023-03-19 07:45:04 UTC |
4.0.0 | 2022-03-03 13:34:57 UTC |
3.4.0 | 2022-02-22 11:29:20 UTC |
3.3.1 | 2020-11-01 16:14:02 UTC |
3.3.0 | 2019-11-23 20:33:05 UTC |
3.2.0 | 2019-03-18 01:05:02 UTC |
3.1.0 | 2018-09-25 15:30:37 UTC |
3.0.0 | 2018-08-31 15:28:38 UTC |
2.2.4 | 2016-08-12 12:14:04 UTC |
2.2.3 | 2016-06-16 03:24:16 UTC |
2.2.2 | 2015-07-04 14:42:49 UTC |
2.2.1 | 2015-01-20 03:16:55 UTC |
2.2.0 | 2014-12-14 01:19:38 UTC |
2.1.0 | 2014-11-12 18:50:25 UTC |
Showing the 20 most recent of 33 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 5.0.1 |
node 18 | 6.0.2 |
node 20 | 7.0.0 |
node 22 | 7.0.0 |
node 24 | 7.0.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of module-definition?
The latest stable version of module-definition is 7.0.0, published on 2026-05-19. Verified by Vigia on 2026-11-12.
How do I install the latest version of module-definition?
Run npm install module-definition@latest. The latest stable version is 7.0.0 (verified 2026-11-12).
Is module-definition deprecated?
No. module-definition is not marked as deprecated in the registry.
Which Node.js version does module-definition require?
module-definition 7.0.0 declares this requirement: {"node":">=20.19.0 || >=22.12.0"}.
Does module-definition 7.0.0 have known vulnerabilities?
No known advisories affect module-definition 7.0.0 according to the data Vigia checks.
Is module-definition still maintained?
module-definition published 2 stable releases in the last 12 months; the most recent was 177 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @rollup/rollup-win32-x64-gnu
- array-each
- @expo/xcpretty
- currently-unhandled
- memory-pager
- platform
- xstate
- conf
- @storybook/addon-links
- dockerode
- @nestjs/axios
- mammoth
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/module-definition) [](https://vigia.coredls.cloud/npm/module-definition) [](https://vigia.coredls.cloud/npm/module-definition)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/module-definition
GET https://vigia.coredls.cloud/v1/packages/npm/module-definition/versions/{version}