vlad 6f123ff03e 18.07 il y a 6 ans
..
LICENSE 6f123ff03e 18.07 il y a 6 ans
README.md 6f123ff03e 18.07 il y a 6 ans
index.js 6f123ff03e 18.07 il y a 6 ans
package.json 6f123ff03e 18.07 il y a 6 ans

README.md

clone-buffer

NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

Easier Buffer cloning in node.

Example

var cloneBuffer = require('clone-buffer');

var buffer = new Buffer('test');
var cloned = cloneBuffer(buffer);
// buffer !== cloned

API

cloneBuffer(buffer)

Takes a Buffer object and returns a clone. Throws if a non-Buffer is passed.

License

MIT