npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

stream-read

1.1.2

@juliangruber

npmHomeRepoSnykSocket
Downloads:16877
$ npm install stream-read
DailyWeeklyMonthlyYearly

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