Kevin 29b9a0c50c clean && clean html base 4 лет назад
..
LICENSE 29b9a0c50c clean && clean html base 4 лет назад
README.md 29b9a0c50c clean && clean html base 4 лет назад
index.js 29b9a0c50c clean && clean html base 4 лет назад
package.json 29b9a0c50c clean && clean html base 4 лет назад

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