sorted-diff-stream
given two sorted streams will emit only pairs that do not match
usage
var diffStream = require('sorted-diff-stream')
returns a function that can be used to create new diff
see test.js for API examples
example
var diffStream = var through = var a = var b = var diffs = // this is the default `isEqual`, you dont have to pass one above { // you can implement your own equality check here instead} // this is the default `compare`, you dont have to pass one above { // you can implement your own comparison here instead} diffs aaaa bbbb // console output:// [{key: 2, value: 'b'}, null]// [null, {key: 5, value: 'e'}]