Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Differ adapter `json-diff` for `node-document` ODM for Node.js.
JavaScript
branch: master

Merge pull request #1 from bitdeli-chef/master

Add a Bitdeli Badge to README
latest commit 4252ca7a3d
@grimen authored
Failed to load latest commit information.
examples
lib
test
.env
.gitignore
.travis.yml
MIT-LICENSE
Makefile
README.md
index.js
package.json

README.md

NODE-DOCUMENT-DIFFER-JSONDIFF Build Status

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

Installation

  $ npm install node-document-differ-jsondiff

Usage

Basic:

  var Differ = require('node-document-differ-jsondiff');

  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

Something went wrong with that request. Please try again.