datalad-course/node_modules/clone-buffer
2025-03-21 15:28:44 +01:00
..
index.js A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
LICENSE A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
package.json A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
README.md A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01: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