unboundedpress/node_modules/buffer-equals
Michael Winter 555e2c196e initial commit
..
index.js initial commit
license initial commit
package.json initial commit
readme.md initial commit

readme.md

buffer-equals Build Status

Node.js buffer.equals() ponyfill

Install

$ npm install --save buffer-equals

Usage

const bufferEquals = require('buffer-equals');

bufferEquals(new Buffer('foo'), new Buffer('foo'));
//=> true

bufferEquals(new Buffer('foo'), new Buffer('bar'));
//=> false

API

See the buffer.equals() docs.

The only difference is that you pass in the buffer as the first argument instead of calling the .equals() method on the buffer instance.

License

MIT © Sindre Sorhus