Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-document-differ-patcherpublic

    NODE-DOCUMENT-DIFFER-PATCHER Build Status

    Differ adapter objectdiff for node-document ODM for Node.js.

    Installation

      $ npm install node-document-differ-patcher

    Usage

    Basic:

      var Differ = require('node-document-differ-patcher');
     
      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

    Keywords

    none

    install

    npm i node-document-differ-patcher

    Downloadsweekly downloads

    3

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar