Skip to content

grimen/node-document-differ-deepdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NODE-DOCUMENT-DIFFER-DEEPDIFF Build Status

Differ adapter deep-diff for node-document ODM for Node.js.

Installation

  $ npm install node-document-differ-deepdiff

Usage

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.

Test

Local tests:

  $ make test

License

Released under the MIT license.

Copyright (c) Jonas Grimfelt

Bitdeli Badge

About

Differ adapter `deep-diff` for `node-document` ODM for Node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published