Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

writev

0.1.0 • Public • Published

writev

A concatenating writev function that forwards to _write, for use with Writable streams.

Installation

npm install --save writev

Usage

const writev = require('writev')
const { Writable } = require('streams')
 
const stream = new Writable({
  write (chunk, encoding, cb) {
    // ...
  }
})
 
stream._writev = writev

API

writev(chunks, cb)

Concatenate all chunks and call this._write with a buffer and the callback cb.

Keywords

none

install

npm i writev

Downloadsweekly downloads

1

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar