{"name":"buffer-equals","version":"1.0.3","description":"Node.js 0.12 buffer.equals() ponyfill","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/buffer-equals"},"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":"c66074728571cbbebe579cc1dae25e3f2bf07f3d","bugs":{"url":"https://github.com/sindresorhus/buffer-equals/issues"},"homepage":"https://github.com/sindresorhus/buffer-equals","_id":"buffer-equals@1.0.3","_shasum":"9e9b8c160a5ceaf68f12ee5a8d2f4ba91c5453e0","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9e9b8c160a5ceaf68f12ee5a8d2f4ba91c5453e0","tarball":"http://registry-npm.ywwl.com/buffer-equals/download/buffer-equals-1.0.3.tgz","integrity":"sha512-wcx3BERaGonPW4o/8CGStJ2ab9yyDK5GkBS+QjlJya4y2iXCN5Hza/T3HkU919s0gsYH/0cS1VmmQs7DtJVrvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIATe/xgZgIyJxKzmwiS4jarNaRyiRHGZhm9lKkee5xsoAiB5EwgELAuJLRO8Gd/y9upzpdgE1HIb834e0Rcnu3eAPw=="}],"size":1716,"noattachment":false,"key":"/buffer-equals/-/buffer-equals-1.0.3.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":1431186055965,"_cnpm_publish_time":1431186055965,"dist-tags":{"latest":"2.0.0"}}