bufferconcat
v1.0.1
Published
buffer concat helper
Downloads
4
Readme
BufferConcat
install
npm install buffer-concat
Usage
var fs = require('fs');
var BufferConcat = require('buffer-concat');
var rstream = fs.createReadStream('./aaa.txt');
var bc = BufferConcat();
rstream.on('data', function (chunk) {
bc.concat(chunk);
});
rstream.on('end', function () {
console.log(bc.toString('utf8'));
});