{"name":"buffer-equals","version":"1.0.2","description":"Node.js 0.12 buffer.equals() ponyfill","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/buffer-equals.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["built-in","core","ponyfill","polyfill","shim","buffer","buffers","equals","equal","compare","comparison"],"devDependencies":{"ava":"0.0.4"},"gitHead":"27fd58393e1966f4ba7ce16e2a30e64cdcaa8ebb","bugs":{"url":"https://github.com/sindresorhus/buffer-equals/issues"},"homepage":"https://github.com/sindresorhus/buffer-equals#readme","_id":"buffer-equals@1.0.2","_shasum":"3112aeccf65e06e45729f400993ad12bd13b4fc1","_from":".","_npmVersion":"2.9.0","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3112aeccf65e06e45729f400993ad12bd13b4fc1","tarball":"http://registry-npm.ywwl.com/buffer-equals/download/buffer-equals-1.0.2.tgz","integrity":"sha512-n0waF5HvKUcCZVl/iEyu/+lW5GIz8z5tE1OBr/lAt0m776zuufcUbNSM2EzZrkdcN36zEai+MJgCB64jsb9UUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGj7OverOUNOD/SL6QVyPKcYXZHinHHIfDmNMdY9aXeOAiEA5Y7QmCqgcjA/kNcYeKvKj7Iz9Lo29PtpHlxp0Sd2Lqo="}],"size":1638,"noattachment":false,"key":"/buffer-equals/-/buffer-equals-1.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# buffer-equals [![Build Status](https://travis-ci.org/sindresorhus/buffer-equals.svg?branch=master)](https://travis-ci.org/sindresorhus/buffer-equals)\n\n> Node.js [`buffer.equals()`](https://nodejs.org/api/buffer.html#buffer_buf_equals_otherbuffer) [ponyfill](https://ponyfill.com)\n\n**Deprecated: Just use [`Buffer#equals()`](https://nodejs.org/api/buffer.html#buffer_buf_equals_otherbuffer). It has been available since Node.js 0.12.**\n\n\n## Install\n\n```\n$ npm install --save buffer-equals\n```\n\n\n## Usage\n\n```js\nconst bufferEquals = require('buffer-equals');\n\nbufferEquals(new Buffer('foo'), new Buffer('foo'));\n//=> true\n\nbufferEquals(new Buffer('foo'), new Buffer('bar'));\n//=> false\n```\n\n\n## API\n\nSee the [`buffer.equals()` docs](https://nodejs.org/api/buffer.html#buffer_buf_equals_otherbuffer).\n\nThe only difference is that you pass in the buffer as the first argument instead of calling the `.equals()` method on the buffer instance.\n\n\n## Related\n\n- [buffer-equals-constant](https://github.com/sindresorhus/buffer-equals-constant) - Check if two buffers have the same bytes in constant time\n- [buf-compare](https://github.com/sindresorhus/buf-compare) - Node.js 0.12 `Buffer.compare()` ponyfill\n- [buf-indexof](https://github.com/sindresorhus/buf-indexof) - Node.js 4.0 `buffer.indexOf()` ponyfill\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","publish_time":1431024289548,"_cnpm_publish_time":1431024289548,"dist-tags":{"latest":"2.0.0"}}