computed-value-stream
Stability: 1 - Experimental
Stability as defined by Node.js
A writable stream with objectMode=true
that emits update
events instead of writing to the stream buffer. Additionally, it stores the latest object in a property called value
.
Installation
npm install computed-value-stream
Usage
var ComputedValueStream = ; var cps = ; console;// -> undefined cps;console;// -> { my: 'object' } cps; cps;// -> update: { another : 'thing' }