0.2.3 • Published 7 years ago

@cloudstitch/node-diff3-wrapper v0.2.3

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

node-diff3-wrapper

This is a small utility wrapper around the command line tool diff3. On windows this package will download and install the gnu32 equivilent.

Install

npm install --save @cloudstitch/node-diff3-wrapper

Usage

var diff3 = require("@cloudstitch/node-diff3-wrapper");

// three files on disk
diff3.diff("/path/to/file/a", "/path/to/file/original", "/path/to/file/b").then((result) => {
  console.log(result);
})

// one file in memory
diff3.diff("-", "/path/to/file/original", "/path/to/file/b", "contents of file a").then((result) => {
  console.log(result);
})

// diff3 -m
diff3.diffM("/path/to/file/a", "/path/to/file/original", "/path/to/file/b").then((result) => {
  console.log(result);
})  
0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago