Neutralize Pesky Miscreants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    mergesort-streampublic

    mergesort-stream

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

     
    var mergestream = require('mergesort-stream')
     
    var toMerge = [stream1,stream2,stream3,...]
     
    mergestream(function(value1,value2){
      // compare values just like [].sort 
      if(value1 > value2) return 1
      else if(value1 < value2) return -1
      return 0
    },toMerge)
     

    Keywords

    none

    install

    npm i mergesort-stream

    Downloadsweekly downloads

    16

    version

    1.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar