lib/consumers/v1/forEach.js
function forEach(stream, onData, onEnd) {

  forEachObj(stream, function (chunk) {
    onData(new Buffer(chunk));
  }, onEnd);
}
function forEach(stream, onData, onEnd) {

  forEachObj(stream, function (chunk) {
    onData(new Buffer(chunk));
  }, onEnd);
}
function forEach ( stream , onData , onEnd ) { forEachObj ( stream , function ( chunk ) { onData ( new Buffer ( chunk ) ) ; } , onEnd ) ; }
Read the items in a stream and convert to buffers.

@private
@deprecated
@static
@since    0.0.1
@category Consumers

@param    {Stream}    stream - Stream that will be read for this function.
@param    {Function}  onData - Callback for each item in the stream.
@param    {Function}  onEnd  - Callback when the stream has been read completely.
@returns  {undefined}
Read the items in a stream and convert to buffers .