UNPKG

stream-read

Version:

Read from a stream, callback style

32 lines (19 loc) 495 B
# stream-read Read from a stream, callback style. [![build status](https://secure.travis-ci.org/micnews/stream-read.svg)](http://travis-ci.org/micnews/stream-read) ## Example ```js 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 ```bash $ npm install stream-read ``` ## License MIT