clone-buffer

Easier Buffer cloning in node.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
clone-buffer
911.0.08 years ago8 years agoMinified + gzip package size for clone-buffer in KB

Readme

<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">

clone-buffer
!NPM versionnpm-imagenpm-url !Downloadsdownloads-imagenpm-url !Build Statustravis-imagetravis-url !AppVeyor Build Statusappveyor-imageappveyor-url !Coveralls Statuscoveralls-imagecoveralls-url !Gitter chatgitter-imagegitter-url
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