# 使用 npm 安装 diff-cover

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

## 安装

```sh
sudo av install npm:diff-cover
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g diff-cover
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:diff-cover
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/diff-cover>
- **版本:** 2.0.5
- **来源摘要:** A Tool to Show Code Coverage for Modified Lines in a Diff
- **主页:** <https://github.com/jamesishandsome/diff_cover_ts#readme>
- **仓库:** <https://github.com/jamesishandsome/diff_cover_ts>
- **上游文档:** <https://github.com/jamesishandsome/diff_cover_ts#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/diff-cover/-/diff-cover-2.0.5.tgz>
- **问题跟踪器:** <https://github.com/jamesishandsome/diff_cover_ts/issues>
- **发布时间:** 2026-01-27T17:00:28.426Z
- **最后更新:** 2026-01-27T17:00:28.426Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- diff-cover (cli)
- diff-quality (cli)
- diff-cover (别名)

## 依赖

- @iarna/toml
- @types/commander
- @types/highlight.js
- @types/iarna__toml
- @types/minimatch
- @types/nunjucks
- @xmldom/xmldom
- commander
- highlight.js
- jschardet
- minimatch
- nunjucks
- xpath

## 构建依赖

- @types/bun
- husky
- lint-staged
- oxfmt
- oxlint
- oxlint-tsgolint
- rolldown

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.5
- 管理器更新时间: 2026-01-27
- 本地数据: OK
- 上游仓库: https://github.com/jamesishandsome/diff_cover_ts
- notice: The package-manager record has not changed recently.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.0.5
- **Version Count:** 5
- **Maintainers:** huyaotian88
- **Author:** James Hu
- **Publisher:** huyaotian88
- **Peer Dependencies:** typescript
- **Integrity:** sha512-lgiCSPZ90fABeUsTwH4m0IKjEro8BhotQCbQECtofBGvC9f7ov3LjBFNokL9ygQdXmsHoz/qfSk09VheboNnhA==
- **Shasum:** efcd86bcbef980b36c72b2682de2196bd07716b3
- **Unpacked Size:** 81,090
- **File Count:** 0
- **Created At:** 2026-01-22T13:07:56.797Z
- **Latest Published At:** 2026-01-27T17:00:28.426Z
- **Modified At:** 2026-01-27T17:00:28.525Z

## 其他软件包管理器记录

- Debian apt - diff-cover - 9.2.2-1: normalized package name match | Debian stable package indexes: diff-cover from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Run coverage and linting reports on diffs | https://github.com/Bachmann1234/diff-cover
- Ubuntu apt - diff-cover - 7.4.0-3: normalized package name match | Ubuntu 24.04 LTS package indexes: diff-cover from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Run coverage and linting reports on diffs | https://github.com/Bachmann1234/diff-cover


## 相关链接

- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [diff-so-fancy](https://pkg.so/zh-hans/npm/diff-so-fancy/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, diff, highlight.
- [diff-so-fancy](https://pkg.so/zh-hans/brew/diff-so-fancy/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, diff, highlight.
- [danger](https://pkg.so/zh-hans/npm/danger/) - Local package facts share a topical domain. Shared terms: cli, code, commander, developer, developer-tools.

## 来源

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