# 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-07-08T07:18:31+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-07-08
- 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. Nucleus 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

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Matched curated package taxonomy and local package facts.
- [detective-amd](https://www.automicvault.com/pkg/npm/detective-amd/) - Both packages touch the same language runtime or ecosystem. Shared terms: amd, ast, ast-module-types, file, module.
- [precinct](https://www.automicvault.com/pkg/npm/precinct/) - Both packages touch the same language runtime or ecosystem. Shared terms: amd, commonjs, definition, module, module-definition.
- [module-lookup-amd](https://www.automicvault.com/pkg/npm/module-lookup-amd/) - Package names and metadata indicate a similar tool family. Shared terms: amd, file, module, using.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
