https://github.com/grimen/node-document-differ-deepdiff
Differ adapter `deep-diff` for `node-document` ODM for Node.js.
https://github.com/grimen/node-document-differ-deepdiff
Last synced: 10 months ago
JSON representation
Differ adapter `deep-diff` for `node-document` ODM for Node.js.
- Host: GitHub
- URL: https://github.com/grimen/node-document-differ-deepdiff
- Owner: grimen
- License: mit
- Created: 2013-01-04T22:38:26.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-29T09:06:11.000Z (about 12 years ago)
- Last Synced: 2025-02-25T21:02:32.374Z (10 months ago)
- Language: JavaScript
- Homepage: https://npmjs.org/package/node-document-differ-deepdiff
- Size: 123 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# NODE-DOCUMENT-DIFFER-DEEPDIFF [](http://travis-ci.org/grimen/node-document-differ-deepdiff)
**Differ** adapter [deep-diff](https://github.com/flitbit/diff) for [node-document](https://github.com/grimen/node-document) ODM for Node.js.
## Installation
```shell
$ npm install node-document-differ-deepdiff
```
## Usage
**Basic:**
```javascript
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](https://github.com/grimen/node-document).
## Test
**Local tests:**
```shell
$ make test
```
## License
Released under the MIT license.
Copyright (c) [Jonas Grimfelt](http://github.com/grimen)
[](https://bitdeli.com/free "Bitdeli Badge")