@transfast/stream-sorter

0.0.0 • Public • Published

Build Status Coverage Status Greenkeeper badge

stream-sorter

Emit sorted stream chunks, buffering the quick ones and discarding the ones that lost the train

Install

npm install stream-sorter

API

consecutive

Emit the data chunks in order, ignoring the old ones

  • options: options passed to underlying Transform stream
    • idField: fields used to store data chunk identifier
    • nextId: initial ID
    • sort: function used to compare and sort the data chunks

latest

Drop data chunks older than the latest emitted one

  • options: options passed to underlying Transform stream
    • idField: fields used to store data chunk identifier
    • lastId: initial ID
    • sort: function used to compare and sort the data chunks

start

Emit the data chunks in bytes order ignoring old ones and allowing intersections

  • options: options passed to underlying Transform stream
    • idField: fields used to store data chunk identifier
    • start: initial ID
    • sort: function used to compare and sort the data chunks

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    0

Package Sidebar

Install

npm i @transfast/stream-sorter

Weekly Downloads

0

Version

0.0.0

License

ISC

Unpacked Size

7.35 kB

Total Files

11

Last publish

Collaborators

  • piranna