{"_id":"buf-compare","_rev":"166705","name":"buf-compare","description":"Node.js `Buffer.compare()` ponyfill","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T11:46:46.000Z","created":"2015-05-09T15:52:43.523Z","2.0.0":"2018-09-24T08:36:49.503Z","1.0.1":"2016-09-30T08:33:05.468Z","1.0.0":"2015-05-09T15:52:43.523Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/buf-compare.git"},"versions":{"2.0.0":{"name":"buf-compare","version":"2.0.0","description":"Node.js `Buffer.compare()` ponyfill","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/buf-compare.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"ava"},"keywords":["built-in","core","ponyfill","polyfill","shim","buffer","buffers","compare","comparison","sort","order"],"devDependencies":{"ava":"*"},"gitHead":"dfd5acaa7b8b6d65d45a8cc376e4f04e0e8c1fa7","bugs":{"url":"https://github.com/sindresorhus/buf-compare/issues"},"homepage":"https://github.com/sindresorhus/buf-compare#readme","_id":"buf-compare@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"78e952a43cdce993aef30e4432d0cbccff287437","size":1729,"noattachment":false,"key":"/buf-compare/-/buf-compare-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/buf-compare/download/buf-compare-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/buf-compare_2.0.0_1537778209278_0.49667321052530755"},"_hasShrinkwrap":false,"deprecated":"Just use `Buffer.compare()`. It has been available since Node.js 0.12.","publish_time":1537778209503,"_cnpm_publish_time":1537778209503},"1.0.1":{"name":"buf-compare","version":"1.0.1","description":"Node.js `Buffer.compare()` ponyfill","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/buf-compare.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"ava"},"files":["index.js"],"keywords":["built-in","core","ponyfill","polyfill","shim","buffer","buffers","compare","comparison","sort","order"],"devDependencies":{"ava":"*"},"gitHead":"a544dc5b98fc257e1fd8f60f5fb18a1fcb6e1c51","bugs":{"url":"https://github.com/sindresorhus/buf-compare/issues"},"homepage":"https://github.com/sindresorhus/buf-compare#readme","_id":"buf-compare@1.0.1","_shasum":"fef28da8b8113a0a0db4430b0b6467b69730b34a","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fef28da8b8113a0a0db4430b0b6467b69730b34a","size":1712,"noattachment":false,"key":"/buf-compare/-/buf-compare-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/buf-compare/download/buf-compare-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/buf-compare-1.0.1.tgz_1475224385233_0.2991544471587986"},"directories":{},"publish_time":1475224385468,"_cnpm_publish_time":1475224385468,"_hasShrinkwrap":false},"1.0.0":{"name":"buf-compare","version":"1.0.0","description":"Node.js 0.12 Buffer.compare() ponyfill","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/buf-compare"},"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","compare","comparison","sort","order"],"devDependencies":{"ava":"0.0.4"},"gitHead":"48f9570b72ee53a39f7a8d3494bd2917b0139c94","bugs":{"url":"https://github.com/sindresorhus/buf-compare/issues"},"homepage":"https://github.com/sindresorhus/buf-compare","_id":"buf-compare@1.0.0","_shasum":"ab534b72db51da7398e72948bba7eb5ab2bd9a3e","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ab534b72db51da7398e72948bba7eb5ab2bd9a3e","size":1775,"noattachment":false,"key":"/buf-compare/-/buf-compare-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/buf-compare/download/buf-compare-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1431186763523,"_cnpm_publish_time":1431186763523,"_hasShrinkwrap":false}},"readme":"# Deprecated\n\nJust use [`Buffer.compare()`](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_compare_buf1_buf2). It has been available since Node.js 0.12.\n\n---\n\n# buf-compare [![Build Status](https://travis-ci.org/sindresorhus/buf-compare.svg?branch=master)](https://travis-ci.org/sindresorhus/buf-compare)\n\n> Node.js [`Buffer.compare()`](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_compare_buf1_buf2) [ponyfill](https://ponyfill.com)\n\n\n## Install\n\n```\n$ npm install --save buf-compare\n```\n\n\n## Usage\n\n```js\nvar bufCompare = require('buf-compare');\n\nbufCompare(new Buffer('a'), new Buffer('a'));\n//=> 0\n\nbufCompare(new Buffer('a'), new Buffer('b'));\n//=> -1\n```\n\n\n## API\n\nSee the [`Buffer.compare()` docs](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_compare_buf1_buf2).\n\n\n## Related\n\n- [buffer-equals](https://github.com/sindresorhus/buffer-equals) - Node.js `buffer.equals()` ponyfill\n- [buf-indexof](https://github.com/sindresorhus/buf-indexof) - Node.js `buffer.indexOf()` ponyfill\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/buf-compare#readme","bugs":{"url":"https://github.com/sindresorhus/buf-compare/issues"},"license":"MIT"}