diff-parser

Diff Parser

npm install diff-parser
1 downloads in the last week
7 downloads in the last month

Diff Parser

Installation

via npm:

$ npm install diff-parser # use -g if you want to use diff2html

Usage

CLI

git diff [file|dir] > filename.diff
diff2html path/to/filename.diff > filename.html

Node

var diffParser = require("diff-parser");
var diffFiles = diffParser.parse(diffString);
console.log(diffFiles); // here have all info you need.
npm loves you