clone-buffer
Easier Buffer cloning in node.
Last updated 4 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clone-buffer 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |