# 使用 npm 安装 code-complexity

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

## 安装

```sh
sudo av install npm:code-complexity
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g code-complexity
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:code-complexity
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/code-complexity>
- **版本:** 4.4.4
- **来源摘要:** Measure the churn/complexity score. Higher values mean hotspots where refactorings should happen.
- **主页:** <https://github.com/simonrenoult/code-complexity#readme>
- **仓库:** <https://github.com/simonrenoult/code-complexity>
- **上游文档:** <https://github.com/simonrenoult/code-complexity#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/code-complexity/-/code-complexity-4.4.4.tgz>
- **问题跟踪器:** <https://github.com/simonrenoult/code-complexity/issues>
- **发布时间:** 2023-09-21T08:39:18.769Z
- **最后更新:** 2023-09-21T08:39:18.769Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- code-complexity (cli)
- code-complexity (别名)

## 依赖

- @babel/core
- @babel/plugin-transform-typescript
- cli-table3
- commander
- debug
- escomplex
- esprima
- micromatch
- node-sloc

## 构建依赖

- @babel/preset-env
- @types/babel__core
- @types/chai
- @types/debug
- @types/micromatch
- @types/mocha
- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- chai
- codecov
- eslint
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-node
- eslint-plugin-prettier
- eslint-plugin-promise
- mocha
- nyc
- prettier
- ts-node
- typescript

## 安装行为

- post-install 钩子: 未定义
- npm 生命周期脚本: prepare
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.4.4
- 管理器更新时间: 2023-09-21
- 本地数据: OK
- 上游仓库: https://github.com/simonrenoult/code-complexity
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Alpha: 5.0.0-alpha.1, Latest: 4.4.4
- **Version Count:** 34
- **Maintainers:** simonrenoult
- **Author:** Simon Renoult
- **Publisher:** simonrenoult
- **Integrity:** sha512-iT/kbZnWqG/BaJSprwc5PZlX8Jt1mJYRzOlD/RkEJDlieDnKkwBxpBKs4W8ZARVPy02W8AWZ97KZHkFyC0Q9rQ==
- **Shasum:** 1e871521ebceb0d532595a8940dbede12f234fb7
- **Unpacked Size:** 396,574
- **File Count:** 0
- **Created At:** 2018-03-24T13:35:29.958Z
- **Latest Published At:** 2023-09-21T08:39:18.769Z
- **Modified At:** 2025-08-21T22:49:53.100Z


## 相关链接

- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [shadcn](https://www.automicvault.com/zh-hans/pkg/npm/shadcn/) - Both packages touch the same language runtime or ecosystem. Shared terms: babel, commander, core, node, plugin-transform-typescript.
- [adminjs](https://www.automicvault.com/zh-hans/pkg/npm/adminjs/) - Both packages touch the same language runtime or ecosystem. Shared terms: babel, commander, core, node, transform.
- [laravel-mix](https://www.automicvault.com/zh-hans/pkg/npm/laravel-mix/) - Local package facts share a topical domain. Shared terms: babel, cli-table3, commander, core, table3.

## 来源

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