diff2html

Diff parser and pretty html generator

Better diffs, unmatched reviews

Demo
Diff2Html pretty html side-by-side example render

Each diff provides a comprehensive visualization of the code changes, helping developers identify problems and better understand the changes.

Line by Line and Side by Side changes

Each diff features a line by line and side by side preview of your changes.

Code syntax highlight

All the code changes are syntax highlighted using highlight.js, providing more readability.

Line similarity matching

Similar lines are paired, allowing for easier change tracking.


Install with npm

> $ npm install diff2html Copy

Find usage examples in the Docs


With command line integration

We work hard to make sure you can have your diffs in a simple and flexible way. Go here for the full documentation.

> $ npm install -g diff2html-cli

diff2html cli installed!

> $ diff2html

Check previous commit changes on your browser

> $ is that it?

Yup, it's that simple.


Sponsor

Hugging Face

The AI community building the future. Build, train and deploy state of the art models powered by the reference open source in natural language processing.

Other projects using diff2html

Exercism

Get really good at programming.

diff2html-cli

diff2html from your terminal to the browser.

Codacy

Automate code reviews on your commits and pull requests.

Ungit

The easiest way to use git. On any platform. Anywhere.

Diffy

Share your diffs and explain your ideas without committing.

Jenkins

Show diffs between builds

code-annotation

Code Annotation Tool.

Chef Automate

DevOps Dashboard for Complete Operational Visibility.

GraphQL Schema Diff

Detects dangerous and breaking changes in GraphQL schemas.

cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io.

git-explorer

Offline-first support for previewing local git repositories.

edgar-monitor

A module that processes new Edgar filings and sends out notifications.

Simple Git

A simple package to be able to drive GIT.

jsreport

javascript based business reporting platform

dendron

Knowledge Management. Redefined.

jest-stare

Jest HTML Reporter and Results Processor

Wiki.js

The most powerful and extensible open source Wiki software

Salto

Understand Your Business Apps' Configuration

intuit Design Systems CLI

A CLI toolbox for creating design systems

Camunda Modeler

Automate processes and decisions in a modern, standards-based way

igit

Tool for managing pull requests

Crowi

Empower the team with sharing your knowledge


Open Source

diff2html is open source. If you'd like to be part of the diff2html community or help improve it, find more information on GitHub and Gitter. Need any help?

Read more in the Docs