0.0.2 • Published 8 years ago

diff-parser-updated v0.0.2

Weekly downloads
4
License
-
Repository
github
Last release
8 years ago

Diff Parser for Node

Installation

via npm:

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

Usage

Command Line

$ 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.

TODO

  • Right now it only support git diff. So the next improvement should be support more type of diffs.
  • Let user customize their styles for the diff html page.

License

MIT