{"_id":"xor-distance","_rev":"481651","name":"xor-distance","description":"Calculate the distance between two buffers as a new buffer and compare computed distances with eachother","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-08-05T09:40:04.000Z","created":"2015-09-27T16:20:04.601Z","2.0.0":"2019-02-04T11:07:03.320Z","1.0.0":"2015-09-27T16:20:04.601Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/xor-distance.git"},"versions":{"2.0.0":{"name":"xor-distance","version":"2.0.0","description":"Calculate the distance between two buffers as a new buffer and compare computed distances with eachother","main":"index.js","dependencies":{},"devDependencies":{"tape":"^4.2.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/xor-distance.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/xor-distance/issues"},"homepage":"https://github.com/mafintosh/xor-distance","gitHead":"27919582f9939f0c4c940a836ad0a11bbca493aa","_id":"xor-distance@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cad3920d3a1e3d73eeedc61a554e51972dae0798","size":1883,"noattachment":false,"key":"/xor-distance/-/xor-distance-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xor-distance/download/xor-distance-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xor-distance_2.0.0_1549278423238_0.8332723108065427"},"_hasShrinkwrap":false,"publish_time":1549278423320,"_cnpm_publish_time":1549278423320},"1.0.0":{"name":"xor-distance","version":"1.0.0","description":"Calculate the distance between two buffers as a new buffer and compare computed distances with eachother","main":"index.js","dependencies":{},"devDependencies":{"tape":"^4.2.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/xor-distance.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/xor-distance/issues"},"homepage":"https://github.com/mafintosh/xor-distance","gitHead":"1c4eb32bde8bca866978514273b6753ac3f802d4","_id":"xor-distance@1.0.0","_shasum":"da735d9b24fcca8dbcd9b374d16d2a01ee9541c6","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"da735d9b24fcca8dbcd9b374d16d2a01ee9541c6","size":1942,"noattachment":false,"key":"/xor-distance/-/xor-distance-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xor-distance/download/xor-distance-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1443370804601,"_cnpm_publish_time":1443370804601,"_hasShrinkwrap":false}},"readme":"# xor-distance\n\nCalculate the xor distance between two buffers as a new buffer and compare computed distances with eachother\n\n```\nnpm install xor-distance\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/xor-distance.svg?style=flat)](http://travis-ci.org/mafintosh/xor-distance)\n\n## Usage\n\n``` js\nvar distance = require('./')\n\nvar dist1 = distance(new Buffer('foo'), new Buffer('bar'))\nvar dist2 = distance(new Buffer('foo'), new Buffer('baz'))\n\n// the following returns true since the distance between foo and bar\n// is greater than the distance between foo and baz\nconsole.log(distance.gt(dist1, dist2))\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/xor-distance","bugs":{"url":"https://github.com/mafintosh/xor-distance/issues"},"license":"MIT"}