0.1.0 • Published 9 years ago
writev v0.1.0
writev
A concatenating writev function that forwards to _write, for use with
Writable streams.
Installation
npm install --save writevUsage
const writev = require('writev')
const { Writable } = require('streams')
const stream = new Writable({
write (chunk, encoding, cb) {
// ...
}
})
stream._writev = writevAPI
writev(chunks, cb)
Concatenate all chunks and call this._write with a buffer and the callback cb.
0.1.0
9 years ago