https://github.com/grimen/node-document-differ
Differ adapter interface for `node-document` ODM for Node.js.
https://github.com/grimen/node-document-differ
Last synced: 3 months ago
JSON representation
Differ adapter interface for `node-document` ODM for Node.js.
- Host: GitHub
- URL: https://github.com/grimen/node-document-differ
- Owner: grimen
- License: mit
- Created: 2013-01-04T22:36:16.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-29T09:06:06.000Z (about 12 years ago)
- Last Synced: 2025-01-12T06:10:35.207Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://npmjs.org/package/node-document-differ
- Size: 135 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 [](http://travis-ci.org/grimen/node-document-differ)
**Differ** adapter interface for [node-document](https://github.com/grimen/node-document) ODM for Node.js.
## About
Unified interface for diffing objects to see changes between the two (additions/removals/edits).
## Adapters
* [DeepDiff](https://github.com/grimen/node-document-differ-deepdiff)
* [JSONDiff](https://github.com/grimen/node-document-differ-jsondiff)
* [ObjectDiff](https://github.com/grimen/node-document-differ-objectdiff)
* [Patcher.js](https://github.com/grimen/node-document-differ-patcher)
## API
### `#diff`
* `(a, b, [callback(err, res)])`
```javascript
differ.diff({foo: 'bar'}, {foo: 'baz', bar: 1}, function(err, res) {
// console.log(arguments);
});
```
## Installation
```shell
$ npm install node-document-differ
```
## 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")