joinbuffers

v0.1.1
joins an array of buffers to one big buffer
join buffer buffers

#joinBuffers takes an array of small buffers and copies them into a single big one

example

var joinBuffers = require('joinbuffers')
var smallBuffers = [new Buffer('1'), new Buffer('2')];
var bigBuffer = joinBuffers(smallBuffers);
console.log(bigBuffer.toString('utf8')); // prints 12

licence

* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <[email protected]> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* ----------------------------------------------------------------------------
npm i joinbuffers

Metadata

Downloads

Maintainers