Diff module to compare javascript objects and xml data
npm install difftool#difftool
> diff module to compare and diff JSON and XML


$ npm install difftool --save
``
var difftool = require('difftool');
difftool.diff(lhs,rhs,schema, options, function(result) {}
`
lhs and rhs are the two objects to compare.schema - you can specify a schema to apply to the comparison to compare just by type or skip the field
example:
`
var schema = { a: { skipKey:true, compareValues: true, compareTypes: true }}``options is an object with 2 fields:
options.filter(a,b) is a function you can pass to the comparison, it's yield every time 2 fields are compared, if the function return true the comparison for those fields is skipped.
options.stringCaseInsensitive is a boolean, if true the string comparison is done case insensitive
result is an array returned from the diff method containing all the differences
- v0.1.0 (2015-05-10)
- added tested and improved docs
- v0.0.1 (2015-05-09)
- initial release