timepiece/node_modules/clone-buffer
2024-05-14 09:54:12 -05:00
..
index.js Initial code commit 2024-05-14 09:54:12 -05:00
LICENSE Initial code commit 2024-05-14 09:54:12 -05:00
package.json Initial code commit 2024-05-14 09:54:12 -05:00
README.md Initial code commit 2024-05-14 09:54:12 -05:00

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