Diff to Html Node Module (CLI) by rtfpessoa
Diff to Html generates pretty HTML diffs.
This project is just a CLI for diff2html-nodejs.
-
line-by-line
andside-by-side
diff -
new and old line numbers
-
inserted and removed lines
-
GitHub like style
Go to Diff2HTML
-
Manually download and import diff2html.js into your page
-
Import Node library diff2html-nodejs into your package.json
sudo npm install -g diff2html-cli
Usage: diff2html [git-diff options]
Options:
-h, --help output usage information
-V, --version output the version number
-i, --input [file] Diff input file.
-o, --output [file] Output to file path. Defaults to stdout.
-p, --preview Open preview in the browser.
-l, --line Line by Line diff.
-s, --side Side by Side diff.
-j, --json Export diff in json format.
All contributions are welcome.
To contribute just send a pull request with your feature,fix,... and it will be reviewed asap.
Copyright 2014 Rodrigo Fernandes. Released under the terms of the MIT license.