Novice, Paragon, Master

    clone-buffer

    1.0.0 • Public • Published

    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

    Install

    npm i clone-buffer

    DownloadsWeekly Downloads

    2,053,315

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • yocontra
    • phated