JSPM

clone-buffer

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3132947
  • Score
    100M100P100Q195277F
  • License MIT

Easier Buffer cloning in node.

Package Exports

  • clone-buffer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clone-buffer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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