diff-parse
Unified diff parser for nodejs
This is straight from parse-diff. I just compiled the coffeescript to javascript because coffeescript complicates things if you just want to use the module.
I also strip the first character for each line because I'm using this for git diffs. It was keeping the '+', '-', and ' ' before the text on each line.
JavaScript Usage Example
var parse = ;var diff = ''; // input diff stringvar files = ;console; // number of patched filesfiles;