sensordb2 e64a8defe5 3.17 1 年間 前
..
LICENSE e64a8defe5 3.17 1 年間 前
README.md e64a8defe5 3.17 1 年間 前
index.js e64a8defe5 3.17 1 年間 前
package.json e64a8defe5 3.17 1 年間 前

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