diff-parser-updated

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i diff-parser-updated

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • pudymody