Strings.fromStream()

Consume a readable stream of data and return a string.

This reads _all_ incoming data. So be careful not to use this on a stream that is too big. (Its contents might not fit into memory all at the same time!)

Usage

Hover over inputs/exits for more info.

var Strings = require('machinepack-strings');


// Consume a readable stream of data and return a string.

Strings.fromStream({

sourceStream: ,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

sourceStream required

The Readable stream to consume.

Exits

error

An unexpected error occurred.

success

OK.