{"name":"buffer-equals","version":"1.0.4","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":"xo && ava"},"files":["index.js"],"keywords":["builtin","core","ponyfill","polyfill","shim","buffer","buffers","equals","equal","compare","comparison"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"b4d25112f5e4700eb5cf083b4dd76c3b04ae2c8d","bugs":{"url":"https://github.com/sindresorhus/buffer-equals/issues"},"homepage":"https://github.com/sindresorhus/buffer-equals#readme","_id":"buffer-equals@1.0.4","_shasum":"0353b54fd07fd9564170671ae6f66b9cf10d27f5","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0353b54fd07fd9564170671ae6f66b9cf10d27f5","tarball":"http://registry-npm.ywwl.com/buffer-equals/download/buffer-equals-1.0.4.tgz","integrity":"sha512-99MsCq0j5+RhubVEtKQgKaD6EM+UP3xJgIvQqwJ3SOLDUekzxMX1ylXBng+Wa2sh7mGT0W6RUly8ojjr1Tt6nA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKDRstVL/F787Qtt7yCJXoFcziesbmvWmiaNVRYVsujAiEAn8PuneL+obx5rTbBUfFycsr4D3QyjNtvtcj1MPOyZUE="}],"size":1758,"noattachment":false,"key":"/buffer-equals/-/buffer-equals-1.0.4.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/buffer-equals-1.0.4.tgz_1475224210839_0.5105735030956566"},"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":1475224213092,"_cnpm_publish_time":1475224213092,"dist-tags":{"latest":"2.0.0"}}