monitor-head-stream
💦 Monitor the head of a stream
This module polls streams of objects for their latest item(s).
It's sort of like tail -f
for Stream
s, but acts upon the head of the stream.
It was created in order to help implement small-scale firehoses.
Example
const createStream = 'POTUS'const indexBy = objidconst skipWhenPinned = objisPinned === true
Install
With yarn
:
yarn add monitor-head-stream
With npm
:
npm install --save monitor-head-stream