# 使用 npm 安装 module-definition

查看 module-definition 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### 便携式和语言管理器

- npm (100%):

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

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:module-definition
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/module-definition>
- **版本:** 7.0.0
- **来源摘要:** Determines if a file is using a CommonJS or AMD module definition
- **主页:** <https://github.com/dependents/module-definition>
- **仓库:** <https://github.com/dependents/module-definition>
- **上游文档:** <https://github.com/dependents/module-definition>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/module-definition/-/module-definition-7.0.0.tgz>
- **问题跟踪器:** <https://github.com/dependents/module-definition/issues>
- **发布时间:** 2026-05-19T14:26:09.402Z
- **最后更新:** 2026-05-19T14:26:09.402Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- module-definition (cli)
- module-definition (别名)

## 依赖

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

## 构建依赖

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

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 7.0.0
- 管理器更新时间: 2026-05-19
- 本地数据: OK
- 上游仓库: https://github.com/dependents/module-definition
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 module-definition 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Matched curated package taxonomy and local package facts.
- [detective-amd](https://www.automicvault.com/zh-hans/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/zh-hans/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/zh-hans/pkg/npm/module-lookup-amd/) - Package names and metadata indicate a similar tool family. Shared terms: amd, file, module, using.

## 来源

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