secure-concat
Yet another
concat-stream
, but cleans its internal state after use
Usage
var concat = var ch1 = Buffervar ch2 = Buffervar ch3 = Buffer var s = sss
API
var stream = concat([opts], cb)
Takes optional opts
and cb(err, buf)
, and returns a WritableStream
.
You can limit how many bytes the stream will accept before causing an error with
opts.limit
, which defaults to Infinity
. You can disable cleaning of internal
state with opts.cleanup
, which defaults to true. Cleanup consists of .fill(0)
of the received Buffer
s in case of an error, and after the Buffer
s have been
concat
ed together.
Install
npm install secure-concat