{"_id":"cluster-key-slot","_rev":"2887816","name":"cluster-key-slot","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"time":{"modified":"2022-11-04T06:14:17.000Z","created":"2016-05-30T08:09:20.327Z","1.1.2":"2022-11-01T14:03:06.331Z","1.1.1":"2022-09-27T10:46:05.140Z","1.1.0":"2019-07-18T09:32:37.646Z","1.0.12":"2018-05-24T23:44:10.043Z","1.0.11":"2018-05-24T23:28:01.833Z","1.0.10":"2018-05-24T23:04:04.740Z","1.0.9":"2018-04-25T14:50:39.214Z","1.0.8":"2016-09-15T10:59:45.062Z","1.0.6":"2016-06-23T15:47:39.503Z","1.0.5":"2016-06-05T13:15:57.869Z","1.0.4":"2016-06-05T13:04:21.143Z","1.0.3":"2016-06-05T13:01:01.875Z","1.0.2":"2016-06-05T12:42:04.421Z","1.0.2-p":"2016-06-05T12:41:56.398Z","1.0.1":"2016-05-31T15:57:53.977Z","1.0.0":"2016-05-30T08:09:20.327Z"},"users":{},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"versions":{"1.1.2":{"name":"cluster-key-slot","version":"1.1.2","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","types":"index.d.ts","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"992ae4c2599dd8ff985930df1013af4ab94fe7e1","_id":"cluster-key-slot@1.1.2","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"shasum":"88ddaa46906e303b5de30d3153b7d9fe0a0c19ac","size":5253,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.1.2.tgz"},"_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.1.2_1667311386149_0.6830058681166773"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-01T14:03:38.457Z","publish_time":1667311386331,"_cnpm_publish_time":1667311386331},"1.1.1":{"name":"cluster-key-slot","version":"1.1.1","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"license":"Apache-2.0","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"29c10bbd5c2948ec274bad51539e1a449f1b2a29","_id":"cluster-key-slot@1.1.1","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","dist":{"shasum":"10ccb9ded0729464b6d2e7d714b100a2d1259d43","size":5133,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.1.1.tgz"},"_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.1.1_1664275565011_0.8786416327541862"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-27T11:15:15.980Z","publish_time":1664275565140,"_cnpm_publish_time":1664275565140},"1.1.0":{"name":"cluster-key-slot","version":"1.1.0","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"license":"APACHE-2.0","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"579d4a5f11cd3f63092286474a993350d6c7ca6d","_id":"cluster-key-slot@1.1.0","_nodeVersion":"10.15.3","_npmVersion":"6.10.0","dist":{"shasum":"30474b2a981fb12172695833052bc0d01336d10d","size":5134,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.1.0.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.1.0_1563442357516_0.9785298295875511"},"_hasShrinkwrap":false,"publish_time":1563442357646,"_cnpm_publish_time":1563442357646},"1.0.12":{"name":"cluster-key-slot","version":"1.0.12","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"license":"APACHE-2.0","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"bb8a717c72f808f6a8e135632946feb241763dd8","_id":"cluster-key-slot@1.0.12","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"d5deff2a520717bc98313979b687309b2d368e29","size":5048,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.12.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.0.12_1527205449969_0.9644974274542242"},"_hasShrinkwrap":false,"publish_time":1527205450043,"_cnpm_publish_time":1527205450043},"1.0.11":{"name":"cluster-key-slot","version":"1.0.11","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"license":"APACHE-2.0","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"6ce06613ecc7b76128242eecca7a11995127b346","_id":"cluster-key-slot@1.0.11","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"ae7b38b0c8a6800bf6529b8a4551d1b91aaa981b","size":4969,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.11.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.0.11_1527204481680_0.48358901450459335"},"_hasShrinkwrap":false,"publish_time":1527204481833,"_cnpm_publish_time":1527204481833},"1.0.10":{"name":"cluster-key-slot","version":"1.0.10","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid","email":"mike.diarmid@gmail.com","url":"http://github.com/Salakar/"},"license":"APACHE-2.0","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"eb4d6fcf0f3d5e246f7e530ce8179c1d4552e434","_id":"cluster-key-slot@1.0.10","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"1ae87883def12adbe1c3b1cccfbca9ac83d1ca1b","size":4975,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.10.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.0.10_1527203044676_0.20752246577211952"},"_hasShrinkwrap":false,"publish_time":1527203044740,"_cnpm_publish_time":1527203044740},"1.0.9":{"name":"cluster-key-slot","version":"1.0.9","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint ./lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/invertase/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/invertase/cluster-key-slot/issues"},"homepage":"https://github.com/invertase/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"fa74971782e59af0eb77e6e42af04edea85a88e7","_id":"cluster-key-slot@1.0.9","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"a538b001da90157efe6f758ae9ddde2ecd9a3077","size":5233,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.9.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cluster-key-slot_1.0.9_1524667839130_0.7161850124961289"},"_hasShrinkwrap":false,"publish_time":1524667839214,"_cnpm_publish_time":1524667839214},"1.0.8":{"name":"cluster-key-slot","version":"1.0.8","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/Salakar/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^3.5.0","eslint-config-airbnb-base":"^7.1.0","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^3.0.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"c0cf7c6e22015d619c7a6dc73c33e1d601ece7af","_id":"cluster-key-slot@1.0.8","_shasum":"7654556085a65330932a2e8b5976f8e2d0b3e414","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"7654556085a65330932a2e8b5976f8e2d0b3e414","size":5315,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.8.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.8.tgz_1473937183819_0.1705012416932732"},"publish_time":1473937185062,"_cnpm_publish_time":1473937185062,"_hasShrinkwrap":false},"1.0.6":{"name":"cluster-key-slot","version":"1.0.6","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"588c35eac1be335dc34fc41eb56f858ec8d3061f","_id":"cluster-key-slot@1.0.6","_shasum":"118c1bac7f42aca495d114211dfbd2b45f6cf506","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"118c1bac7f42aca495d114211dfbd2b45f6cf506","size":5238,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.6.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.6.tgz_1466696857316_0.25499423407018185"},"publish_time":1466696859503,"_cnpm_publish_time":1466696859503,"_hasShrinkwrap":false},"1.0.5":{"name":"cluster-key-slot","version":"1.0.5","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"benchmark":"node ./benchmark","posttest":"eslint lib && npm run coveralls","coveralls":"cat ./coverage/lcov.info | coveralls","test":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","coveralls":"^2.11.9","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"a66901c8229f60fd68c7121e67c1690b10c6f409","_id":"cluster-key-slot@1.0.5","_shasum":"55df9b14d2fbb9801c379780e9b7e32bdbb901e5","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"55df9b14d2fbb9801c379780e9b7e32bdbb901e5","size":5007,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.5.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.5.tgz_1465132555408_0.8325273487716913"},"publish_time":1465132557869,"_cnpm_publish_time":1465132557869,"_hasShrinkwrap":false},"1.0.4":{"name":"cluster-key-slot","version":"1.0.4","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"test":"mocha","benchmark":"node ./benchmark","posttest":"eslint lib && npm run coverage && npm run coverage:check","coverage":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"98daf121c7d8159f6afd1698ea1b864204c54357","_id":"cluster-key-slot@1.0.4","_shasum":"89bd74c98510357d47af9a1801c6db8ded9fd223","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"89bd74c98510357d47af9a1801c6db8ded9fd223","size":4957,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.4.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.4.tgz_1465131859363_0.4521941691637039"},"publish_time":1465131861143,"_cnpm_publish_time":1465131861143,"_hasShrinkwrap":false},"1.0.3":{"name":"cluster-key-slot","version":"1.0.3","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"test":"mocha","benchmark":"node ./benchmark","posttest":"eslint lib && npm run coverage && npm run coverage:check","coverage":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"a2a545be98a4e6033f9885ac313a90b7cb38a072","_id":"cluster-key-slot@1.0.3","_shasum":"bc2fb8bd989d2381ecc329cfdc72505a42fc1d77","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"bc2fb8bd989d2381ecc329cfdc72505a42fc1d77","size":4865,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.3.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.3.tgz_1465131659341_0.773193744244054"},"publish_time":1465131661875,"_cnpm_publish_time":1465131661875,"_hasShrinkwrap":false},"1.0.2":{"name":"cluster-key-slot","version":"1.0.2","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"test":"mocha","benchmark":"node ./benchmark","posttest":"eslint lib && npm run coverage && npm run coverage:check","coverage":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"5ca126cf4396a691cd1ac38a595899adaf3ab5a1","_id":"cluster-key-slot@1.0.2","_shasum":"1e409a88749baa3f078f1b130357c7f51b580ba7","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"1e409a88749baa3f078f1b130357c7f51b580ba7","size":4425,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.2.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.2.tgz_1465130522643_0.4274124607909471"},"publish_time":1465130524421,"_cnpm_publish_time":1465130524421,"_hasShrinkwrap":false},"1.0.2-p":{"name":"cluster-key-slot","version":"1.0.2-p","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"test":"mocha","benchmark":"node ./benchmark","posttest":"eslint lib && npm run coverage && npm run coverage:check","coverage":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"5ca126cf4396a691cd1ac38a595899adaf3ab5a1","_id":"cluster-key-slot@1.0.2-p","_shasum":"8173f34fd6006ec929543f3b2fe218c135710ac8","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"8173f34fd6006ec929543f3b2fe218c135710ac8","size":4422,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.2-p.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.2-p.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.2-p.tgz_1465130514659_0.14494262798689306"},"publish_time":1465130516398,"_cnpm_publish_time":1465130516398,"_hasShrinkwrap":false},"1.0.1":{"name":"cluster-key-slot","version":"1.0.1","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"lib/index.js","scripts":{"test":"mocha","benchmark":"node ./benchmark","posttest":"eslint lib && npm run coverage && npm run coverage:check","coverage":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-slot.git"},"keywords":["redis","hash","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"benchmark":"^2.1.0","codeclimate-test-reporter":"^0.3.1","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","istanbul":"^0.4.0","mocha":"^2.3.2"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/cluster-key-slot/issues"},"homepage":"https://github.com/NodeRedis/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"cd15ca143f918576ea6b93065bf942704cc63956","_id":"cluster-key-slot@1.0.1","_shasum":"13e860cf448f34d028b9eca38f223a0544a8d32a","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"13e860cf448f34d028b9eca38f223a0544a8d32a","size":4429,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.1.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.1.tgz_1464710271483_0.7445224104449153"},"publish_time":1464710273977,"_cnpm_publish_time":1464710273977,"_hasShrinkwrap":false},"1.0.0":{"name":"cluster-key-slot","version":"1.0.0","description":"Generates CRC hashes for strings - for use by node redis clients to determine key slots.","main":"index.js","scripts":{"test":"mocha","benchmark":"node ./benchmark","posttest":"eslint lib && npm run coverage && npm run coverage:check","coverage":"node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec","coverage:check":"node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/cluster-key-hash.git"},"keywords":["redis","crc","slot","calc","javascript","node","node_redis","ioredis"],"engines":{"node":">=0.10.0"},"devDependencies":{"codeclimate-test-reporter":"^0.3.1","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0","intercept-stdout":"^0.1.2","istanbul":"^0.4.0","mocha":"^2.3.2","qtimeit":"^0.9.1"},"author":{"name":"Mike Diarmid"},"license":"MIT","bugs":{"url":"https://github.com/salakar/cluster-key-slot/issues"},"homepage":"https://github.com/salakar/cluster-key-slot#readme","directories":{"test":"test","lib":"lib"},"gitHead":"139fdf533a23aa5ada7098e5ac693d6fe6577b3c","_id":"cluster-key-slot@1.0.0","_shasum":"48b90c2784224d1581c00878d42f1489e092f9a9","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"dist":{"shasum":"48b90c2784224d1581c00878d42f1489e092f9a9","size":4900,"noattachment":false,"key":"/cluster-key-slot/-/cluster-key-slot-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cluster-key-slot/download/cluster-key-slot-1.0.0.tgz"},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cluster-key-slot-1.0.0.tgz_1464595758196_0.9757133456878364"},"publish_time":1464595760327,"_cnpm_publish_time":1464595760327,"_hasShrinkwrap":false}},"readme":"[![Coverage Status](https://coveralls.io/repos/github/Salakar/cluster-key-slot/badge.svg?branch=master)](https://coveralls.io/github/Salakar/cluster-key-slot?branch=master)\n![Downloads](https://img.shields.io/npm/dt/cluster-key-slot.svg)\n[![npm version](https://img.shields.io/npm/v/cluster-key-slot.svg)](https://www.npmjs.com/package/cluster-key-slot)\n[![dependencies](https://img.shields.io/david/Salakar/cluster-key-slot.svg)](https://david-dm.org/Salakar/cluster-key-slot)\n[![License](https://img.shields.io/npm/l/cluster-key-slot.svg)](/LICENSE)\n<a href=\"https://twitter.com/mikediarmid\"><img src=\"https://img.shields.io/twitter/follow/mikediarmid.svg?style=social&label=Follow\" alt=\"Follow on Twitter\"></a>\n\n# Redis Key Slot Calculator\n\nA high performance redis cluster key slot calculator for node redis clients e.g. [node_redis](https://github.com/NodeRedis/node_redis), [ioredis](https://github.com/luin/ioredis) and [redis-clustr](https://github.com/gosquared/redis-clustr/).\n\nThis also handles key tags such as `somekey{actualTag}`.\n\n## Install\n\nInstall with [NPM](https://npmjs.org/):\n\n```\nnpm install cluster-key-slot --save\n```\n\n## Usage\n\n```js\nconst calculateSlot = require('cluster-key-slot');\nconst calculateMultipleSlots = require('cluster-key-slot').generateMulti;\n\n// ...\n\n// a single slot number\nconst slot = calculateSlot('test:key:{butOnlyThis}redis');\n// Buffer is also supported\nconst anotherSlot = calculateSlot(Buffer.from([0x7b, 0x7d, 0x2a]));\n\n// multiple keys - multi returns a single key slot number, returns -1 if any\n// of the keys does not match the base slot number (base is defaulted to first keys slot)\n// This is useful to quickly determine a singe slot for multi keys operations.\nconst slotForRedisMulti = calculateMultipleSlots([\n  'test:key:{butOnlyThis}redis',\n  'something:key45:{butOnlyThis}hello',\n  'example:key46:{butOnlyThis}foobar',\n]);\n```\n\n## Benchmarks\n\n`OLD` in these benchmarks refers to the `ioredis` crc calc and many of the other calculators that use `Buffer`.\n\n```text\nnode -v                                                                                                                                                                                                ✔  16.38G RAM  10:29:07\nv10.15.3\n\nNEW tags x 721,445 ops/sec ±0.44% (90 runs sampled)\nOLD tags x 566,777 ops/sec ±0.97% (96 runs sampled)\nNEW without tags x 2,054,845 ops/sec ±1.77% (92 runs sampled)\nOLD without tags x 865,839 ops/sec ±0.43% (96 runs sampled)\nNEW without tags singular x 6,354,097 ops/sec ±1.25% (94 runs sampled)\nOLD without tags singular x 4,012,250 ops/sec ±0.96% (94 runs sampled)\nNEW tags (Buffer) x 552,346 ops/sec ±1.35% (92 runs sampled)\n```\n\n","_attachments":{},"homepage":"https://github.com/Salakar/cluster-key-slot#readme","bugs":{"url":"https://github.com/Salakar/cluster-key-slot/issues"},"license":"Apache-2.0"}