pull-sorted-interleave

1.0.1 • Public • Published

pull-sorted-interleave

combine a series of pull-streams into one pull-stream where the items are sorted. Similar to pull-sorted-merge but does not require the input streams to have the same number of emissions. However, we still assume that each input stream is internally already sorted.

const interleave = require('pull-sorted-interleave')
const pull = require('pull-stream')

pull(
  merge([stream1, stream2, stream3], compare),
  pull.drain(x => {
    console.log(x)
  })
)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pull-sorted-interleave

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

1.57 MB

Total Files

17

Last publish

Collaborators

  • staltz