ShenNong/packages/字体精简工具/node_modules/clone-buffer
2024-06-21 18:44:06 +08:00
..
index.js 神农首次提交 2024-06-21 18:44:06 +08:00
LICENSE 神农首次提交 2024-06-21 18:44:06 +08:00
package.json 神农首次提交 2024-06-21 18:44:06 +08:00
README.md 神农首次提交 2024-06-21 18:44:06 +08:00

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