Skip to content

cloudstitch/node-diff3-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
})  

About

diff3 node wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published