Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stream-read

micnews30.7kMIT1.1.2

Read from a stream, callback style

readme

stream-read

Read from a stream, callback style.

build status

Example

var read = require('stream-read');

var stream = createStreamSomeHow();

read(stream, function(err, data){
  // err => stream emitted "error" event
  // truthy data => stream emitted data
  // `null` data => stream ended
});

Installation

$ npm install stream-read

License

MIT