# Install module-definition with npm

Determines if a file is using a CommonJS or AMD module definition. Version 7.0.0 via npm; verified 2026-05-19.

## Install

```sh
sudo av install npm:module-definition
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g module-definition
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:module-definition
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/module-definition>
- **Version:** 7.0.0
- **Source summary:** Determines if a file is using a CommonJS or AMD module definition
- **Homepage:** <https://github.com/dependents/module-definition>
- **Repository:** <https://github.com/dependents/module-definition>
- **Upstream docs:** <https://github.com/dependents/module-definition>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/module-definition/-/module-definition-7.0.0.tgz>
- **Issue tracker:** <https://github.com/dependents/module-definition/issues>
- **Published:** 2026-05-19T14:26:09.402Z
- **Last updated:** 2026-05-19T14:26:09.402Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- module-definition (cli)
- module-definition (alias)

## Dependencies

- ast-module-types
- node-source-walk

## Build dependencies

- c8
- globals
- memfs
- mocha
- unionfs
- xo

## Install behavior

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

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 7.0.0
- Package-manager updated: 2026-05-19
- Local data: ok
- Upstream repository: https://github.com/dependents/module-definition
- info: No cached GitHub release or tag data was available.

## Security Notes

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


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 7.0.0
- **Version Count:** 33
- **Maintainers:** pahen, mrjoelkemp, xhmikosr
- **Author:** Joel Kemp
- **Publisher:** xhmikosr
- **Engines:** Node: >=20.19.0 || >=22.12.0
- **Integrity:** sha512-ctl9cJHEHUqP8IehBhEq9NuykuFVJAhxeLR4BeObsrcwrZMTu2ax3F22Ii5bad1T41LwKOug/9FAzO9wmfAZ1Q==
- **Shasum:** ca1b9b46c7d4327a282a360aa0d1962a01868010
- **Unpacked Size:** 7,309
- **File Count:** 0
- **Created At:** 2014-03-18T18:28:01.210Z
- **Latest Published At:** 2026-05-19T14:26:09.402Z
- **Modified At:** 2026-05-19T14:26:09.528Z


## Related links

- [Web development packages](https://pkg.so/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [detective-amd](https://pkg.so/npm/detective-amd/) - Both packages touch the same language runtime or ecosystem. Shared terms: amd, analysis, ast, ast-module-types, cli.
- [precinct](https://pkg.so/npm/precinct/) - Both packages touch the same language runtime or ecosystem. Shared terms: amd, cli, commonjs, definition, developer.
- [module-deps](https://pkg.so/npm/module-deps/) - Package names and metadata indicate a similar tool family. Shared terms: analysis, cli, code, code-analysis, developer.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
