1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/node_modules/clone-buffer
2022-07-15 11:08:01 -03:00
..
index.js New updates and modules 2022-07-15 11:08:01 -03:00
LICENSE New updates and modules 2022-07-15 11:08:01 -03:00
package.json New updates and modules 2022-07-15 11:08:01 -03:00
README.md New updates and modules 2022-07-15 11:08:01 -03: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