superstream

The Voltron of node style streams

SuperStream

The Voltron of node style streams

Work in progress

  • Stream mixin support
  • Read, Write and Transform support
  • Stream any data type

Create new stream instance

// new Stream(); can also be used 
var stream = Stream();

Create stream mixin from existing object. Conflicting properties will be overwritten with Stream property.

var obj = {};
Stream(obj);
// TODO add docs 
// TODO add docs 
// TODO add docs 
// TODO add docs 
// TODO add docs 
// TODO add docs 
// TODO add docs 
// TODO add docs 
// TODO add docs 
stream.pause();
stream.resume();
// TODO add docs 

When there is data ready to be consumed, this event will fire. When this event emits, call the read() method to consume the data.

Emitted on data being written to the Stream. Note that adding a 'data' event listener will switch the Readable stream into "old mode", where data is emitted as soon as it is available, rather than waiting for you to call read() to consume it

Emitted if there was an error receiving data.

Emitted when the stream has received an EOF (FIN in TCP terminology). Indicates that no more 'data' events will happen.

Emitted when the stream's write queue empties and it's safe to write without buffering again. Listen for it when stream.write() returns false.

When end() is called and there are no more chunks to write, this event is emitted.

Emitted when the stream is passed to a readable stream's pipe method.

Emitted when a previously established pipe() is removed using the source Readable stream's unpipe() method.

MIT