# Install diff2html-cli with npm

Fast Diff to colorized HTML. Version 5.2.15 via npm; verified 2024-01-12. Also installable with nix: nix profile install nixpkgs#diff2html-cli.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

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

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:diff2html-cli
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/diff2html-cli>
- **Version:** 5.2.15
- **Source summary:** Fast Diff to colorized HTML
- **Homepage:** <https://diff2html.xyz/index.html#cli>
- **Repository:** <https://github.com/rtfpessoa/diff2html-cli>
- **Upstream docs:** <https://diff2html.xyz/index.html#cli>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/diff2html-cli/-/diff2html-cli-5.2.15.tgz>
- **Issue tracker:** <https://github.com/rtfpessoa/diff2html-cli/issues>
- **Published:** 2024-01-12T21:17:26.572Z
- **Last updated:** 2024-01-12T21:17:26.572Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- diff2html (cli)
- diff2html (alias)

## Dependencies

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

## Build dependencies

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

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 5.2.15
- Package-manager updated: 2024-01-12
- Local data: ok
- Upstream repository: https://github.com/rtfpessoa/diff2html-cli
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for diff2html-cli. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Web development packages](https://pkg.so/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [ttag-cli](https://pkg.so/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/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/npm/prismic-ts-codegen/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, fast, fetch.

## Sources

- 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
