# 使用 npm 安装 diff2html-cli

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

## 安装

```sh
sudo av install npm:diff2html-cli
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g diff2html-cli
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:diff2html-cli
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/diff2html-cli>
- **版本:** 5.2.15
- **来源摘要:** Fast Diff to colorized HTML
- **主页:** <https://diff2html.xyz/index.html#cli>
- **仓库:** <https://github.com/rtfpessoa/diff2html-cli>
- **上游文档:** <https://diff2html.xyz/index.html#cli>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/diff2html-cli/-/diff2html-cli-5.2.15.tgz>
- **问题跟踪器:** <https://github.com/rtfpessoa/diff2html-cli/issues>
- **发布时间:** 2024-01-12T21:17:26.572Z
- **最后更新:** 2024-01-12T21:17:26.572Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- diff2html (cli)
- diff2html (别名)

## 依赖

- clipboardy
- diff2html
- node-fetch
- open
- yargs

## 构建依赖

- @babel/core
- @babel/preset-env
- @babel/preset-typescript
- @jest/globals
- @types/hogan.js
- @types/jest
- @types/node
- @types/node-fetch
- @types/request
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- babel-jest
- eslint
- eslint-config-prettier
- eslint-import-resolver-typescript
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-json
- eslint-plugin-node
- eslint-plugin-optimize-regex
- eslint-plugin-promise
- eslint-plugin-sonarjs
- husky
- is-ci-cli
- jest
- lint-staged
- markdown-toc
- prettier
- ts-jest
- ts-node
- typescript

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.2.15
- 管理器更新时间: 2024-01-12
- 本地数据: OK
- 上游仓库: https://github.com/rtfpessoa/diff2html-cli
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 5.2.15, Pr: 5.2.8-5272ga65bb37.2.a65bb37
- **Version Count:** 96
- **Maintainers:** rtfpessoa
- **Author:** Rodrigo Fernandes
- **Publisher:** rtfpessoa
- **Engines:** Node: >=16
- **Integrity:** sha512-w1WJSzyiXDSVsz6cYPE7eu0f3KptN1fT2s/i0ENavaB9aT1Fj/3zjH00mYB14JiPdj3X0hl4PsrtBNjgGKdpkA==
- **Shasum:** 5e09e7da36cca0816960927ebe3b656597c92c07
- **Unpacked Size:** 58,918
- **File Count:** 0
- **Created At:** 2015-04-11T20:00:08.611Z
- **Latest Published At:** 2024-01-12T21:17:26.572Z
- **Modified At:** 2024-01-12T21:17:26.738Z

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

- Nix - diff2html-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/diff2html-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [ttag-cli](https://pkg.so/zh-hans/npm/ttag-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, fetch, generator.
- [node-htmldiff](https://pkg.so/zh-hans/npm/node-htmldiff/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, diff, diff-tools.
- [prismic-ts-codegen](https://pkg.so/zh-hans/npm/prismic-ts-codegen/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, fast, fetch.

## 来源

- 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
