npm.io
0.0.1 • Published 12 years ago

co-concat-stream

Licence
MIT
Version
0.0.1
Deps
1
Vulns
0
Weekly
0

co-concat-stream

Concat stream contents, generator-style.

Install

$ npm install co-concat-stream

Usage

var concat = require('co-concat-stream');

var content = yield* concat(fs.createReadStream(file))

API

concat(stream, opts)

Creates a generator, that yields with the content of the stream. It stops reading after opts.limit bytes.

License

MIT

Keywords