Package Exports
- diff2html
- diff2html/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diff2html) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Diff to Html Node Module by rtfpessoa
Diff to Html generates pretty HTML diffs.
Inspiration
This project uses diff2html as base.
Features
line-by-line
andside-by-side
diffnew and old line numbers
inserted and removed lines
GitHub like style
Online Example
Go to Diff2HTML
Other Distributions
Manually download and import diff2html.js into your page
Setup
sudo npm install -g diff2html
Usage
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.
Contribution
All contributions are welcome.
To contribute just send a pull request with your feature,fix,... and it will be reviewed asap.
License
Copyright 2014 Rodrigo Fernandes. Released under the terms of the MIT license.