JSPM

node-document-differ-patcher

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26284F

Differ adapter `patcher` for `node-document` ODM for Node.js.

Package Exports

  • node-document-differ-patcher

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-document-differ-patcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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