node-diff3-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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 node-diff3-wrapper

Usage

var diff3 = require("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);
})  

Readme

Keywords

none

Package Sidebar

Install

npm i node-diff3-wrapper

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

19.5 kB

Total Files

9

Last publish

Collaborators

  • papodaca