Differ adapter deep-diff for node-document ODM for Node.js.
$ npm install node-document-differ-deepdiff
Basic:
var Differ = require('node-document-differ-deepdiff');
var differ = new Differ();
var a = {foo: 1, bar: "baz"},
b = {foo: 2, baz: "qux"};
differ.diff(a, b, function(err, diff, identical) {
console.log("Equal: %s \nDiff:\n", identical, diff);
});
For details; see node-document.
Local tests:
$ make test
Released under the MIT license.
Copyright (c) Jonas Grimfelt