stream-read

Read from a stream, callback style

MIT 5 个版本
安装
npm install stream-read
yarn add stream-read
pnpm add stream-read
bun add stream-read
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

版本列表
1.1.2 2014-12-01
1.1.1 2014-11-30
1.1.0 2014-11-29
1.0.1 2014-10-14
1.0.0 2014-10-14