merge sorted data from multiple streams into one

npm install mergesort-stream
7 downloads in the last week
14 downloads in the last month


Merge multiple sorted streams into one sorted stream. Each stream itself must be sorted.

var mergestream = require('mergesort-stream')

var toMerge = [stream1,stream2,stream3,...]

  // compare values just like [].sort
  if(value1 > value2) return 1
  else if(value1 < value2) return -1
  return 0
npm loves you