Skip to content

agate/node-diff-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node DIff Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published