A CLI tool that converts unified and git diff output into pretty, syntax-highlighted HTML for easy viewing.
diff2html-cli is a Node.js command-line tool that converts raw diff output (from git or unified diff format) into beautifully formatted HTML pages. It solves the problem of reading plain-text diffs in terminals by providing a rich, visual interface with syntax highlighting, multiple view modes, and GitHub-like styling.
Developers, DevOps engineers, and code reviewers who frequently work with git diffs or patch files and want a more readable, shareable format for code changes.
It offers a zero-configuration way to generate professional, syntax-highlighted HTML diffs directly from the command line, with support for multiple input sources and output formats, making code reviews and change tracking more accessible.
Pretty diff to html javascript cli (diff2html-cli)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Renders diffs with a clean, familiar style similar to GitHub's viewer, making code changes easy to read for developers.
Accepts input from files, stdin, or git commands, and outputs to HTML, JSON, stdout, or browser preview, as detailed in the usage table.
Offers numerous flags for tuning output style, syntax highlighting, and line matching, allowing precise control over diff presentation.
Generates standalone HTML files or browser previews, enabling straightforward sharing and review without additional tools.
Relies on CDN-hosted highlight.js for syntax highlighting, which fails in offline environments or if the CDN is blocked.
Custom HTML templates require exact placeholder insertion with minimal documentation, making them error-prone to implement.
Limited to visualization only; lacks built-in capabilities for commenting, editing, or merging changes within the output.