1 line
14 KiB
JSON
1 line
14 KiB
JSON
{"_id":"redis-commands","_rev":"19-547a5a629a004661c033e857dd4d1188","name":"redis-commands","description":"Redis commands","dist-tags":{"latest":"1.3.1"},"versions":{"0.0.1":{"name":"redis-commands","version":"0.0.1","description":"Redis commands implemented in javascript (learning purpose only)","main":"index.js","dependencies":{"minimatch":"~0.2.11"},"devDependencies":{"mocha":"~1.9.0","should":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/yuanchuan/redis-commands"},"keywords":["redis","commands","api"],"author":{"name":"yuanchuan"},"license":"MIT","_id":"redis-commands@0.0.1","dist":{"shasum":"1ed845993fd81b849f50bff1ede15d118c088608","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"yuanchuan","email":"yuanchuan23@gmail.com"},"maintainers":[{"name":"yuanchuan","email":"yuanchuan23@gmail.com"}],"directories":{}},"0.0.2":{"name":"redis-commands","version":"0.0.2","description":"Redis commands implemented in javascript (learning purpose only)","main":"index.js","dependencies":{"minimatch":"~0.2.11"},"devDependencies":{"mocha":"~1.9.0","should":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/yuanchuan/redis-commands"},"keywords":["redis","commands","api"],"author":{"name":"yuanchuan"},"license":"MIT","_id":"redis-commands@0.0.2","dist":{"shasum":"a918ea9f58187238e324a9ae9d4abb16e56fb885","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"yuanchuan","email":"yuanchuan23@gmail.com"},"maintainers":[{"name":"yuanchuan","email":"yuanchuan23@gmail.com"}],"directories":{}},"0.0.3":{"name":"redis-commands","version":"0.0.3","description":"Redis commands implemented in javascript (learning purpose only)","main":"index.js","dependencies":{"minimatch":"~0.2.11"},"devDependencies":{"mocha":"~1.9.0","should":"*"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/yuanchuan/redis-commands"},"keywords":["redis","commands","api"],"author":{"name":"yuanchuan"},"license":"MIT","bugs":{"url":"https://github.com/yuanchuan/redis-commands/issues"},"_id":"redis-commands@0.0.3","dist":{"shasum":"5cd4f907fe032d7bf0d6a72c008eeb4d4b0c1ce2","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"yuanchuan","email":"yuanchuan23@gmail.com"},"maintainers":[{"name":"yuanchuan","email":"yuanchuan23@gmail.com"}],"directories":{}},"1.0.0":{"name":"redis-commands","version":"1.0.0","description":"Redis commands","main":"index.js","scripts":{"test":"mocha","build":"node tools/build"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","ioredis":"^1.0.8","json-stable-stringify":"^1.0.0","mocha":"^2.2.1"},"gitHead":"095cfc57b08039a49e4c321d79b0ca28f48272b8","_id":"redis-commands@1.0.0","_shasum":"4241e0cd6e50563b2787b03a62c274fcd6b4074a","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"luin","email":"i@zihua.li"},"dist":{"shasum":"4241e0cd6e50563b2787b03a62c274fcd6b4074a","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.0.0.tgz"},"maintainers":[{"name":"luin","email":"i@zihua.li"}],"directories":{}},"1.0.1":{"name":"redis-commands","version":"1.0.1","description":"Redis commands","main":"index.js","scripts":{"test":"mocha","build":"node tools/build"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","ioredis":"^1.0.8","json-stable-stringify":"^1.0.0","mocha":"^2.2.1"},"gitHead":"18da5e57a41f2f590b56d902143b6dd57f0d1da2","_id":"redis-commands@1.0.1","_shasum":"500f8a0f08ed19f76faadb754207ecd3a216a931","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"dist":{"shasum":"500f8a0f08ed19f76faadb754207ecd3a216a931","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.0.1.tgz"},"maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"directories":{}},"1.0.2":{"name":"redis-commands","version":"1.0.2","description":"Redis commands","main":"index.js","scripts":{"test":"mocha","build":"node tools/build"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","ioredis":"^1.0.8","json-stable-stringify":"^1.0.0","mocha":"^2.2.1"},"gitHead":"ae56f81e732be254b4413575b4077daa674d742c","_id":"redis-commands@1.0.2","_shasum":"129577fa89f63fb25886954e47e22cbbf6d361ed","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"dist":{"shasum":"129577fa89f63fb25886954e47e22cbbf6d361ed","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.0.2.tgz"},"maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"directories":{}},"1.1.0":{"name":"redis-commands","version":"1.1.0","description":"Redis commands","main":"index.js","scripts":{"test":"mocha","build":"node tools/build"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","ioredis":"^1.0.8","json-stable-stringify":"^1.0.0","mocha":"^2.2.1"},"gitHead":"1197dea82a96f28ac7a68420cb001cb5a8d305db","_id":"redis-commands@1.1.0","_shasum":"aa5609a52213596816b6050384332ef631011272","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"dist":{"shasum":"aa5609a52213596816b6050384332ef631011272","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.1.0.tgz"},"maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/redis-commands-1.1.0.tgz_1455033796214_0.11535729700699449"},"directories":{}},"1.2.0":{"name":"redis-commands","version":"1.2.0","description":"Redis commands","main":"index.js","scripts":{"test":"mocha","posttest":"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","build":"node tools/build"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","codeclimate-test-reporter":"^0.3.1","ioredis":"^2.0.0-rc2","istanbul":"^0.4.3","json-stable-stringify":"^1.0.0","mocha":"^2.2.1"},"gitHead":"d8913533a75f29e7748b8480b4d7b9d9e7a05526","_id":"redis-commands@1.2.0","_shasum":"4808e7a0fcb1d3609bec56eecc3532dacbab981c","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"dist":{"shasum":"4808e7a0fcb1d3609bec56eecc3532dacbab981c","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.2.0.tgz"},"maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/redis-commands-1.2.0.tgz_1461202467613_0.6769857455510646"},"directories":{}},"1.3.0":{"name":"redis-commands","version":"1.3.0","description":"Redis commands","main":"index.js","scripts":{"pretest":"npm run lint","test":"mocha","posttest":"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","build":"node tools/build","lint":"standard --fix --verbose | snazzy"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","codeclimate-test-reporter":"^0.3.1","ioredis":"^2.0.0","istanbul":"^0.4.3","json-stable-stringify":"^1.0.0","mocha":"^3.0.0","snazzy":"^5.0.0","standard":"^8.0.0"},"gitHead":"a3ea72da0064b90f83b5d4728b60d0bb3021ed6a","_id":"redis-commands@1.3.0","_shasum":"4307d8094aee1315829ab6729b37b99f62365d63","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"dist":{"shasum":"4307d8094aee1315829ab6729b37b99f62365d63","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.0.tgz"},"maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/redis-commands-1.3.0.tgz_1476993178910_0.8879043820779771"},"directories":{}},"1.3.1":{"name":"redis-commands","version":"1.3.1","description":"Redis commands","main":"index.js","scripts":{"pretest":"npm run lint","test":"mocha","posttest":"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","build":"node tools/build","lint":"standard --fix --verbose | snazzy"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"license":"MIT","bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"homepage":"https://github.com/NodeRedis/redis-commonds","devDependencies":{"chai":"^3.4.0","codeclimate-test-reporter":"^0.4.0","ioredis":"^2.0.0","istanbul":"^0.4.3","json-stable-stringify":"^1.0.0","mocha":"^3.0.0","snazzy":"^6.0.0","standard":"^8.0.0"},"gitHead":"3c87f94d94fcf66ca0c77101a6d36fad32134326","_id":"redis-commands@1.3.1","_shasum":"81d826f45fa9c8b2011f4cd7a0fe597d241d442b","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"dist":{"shasum":"81d826f45fa9c8b2011f4cd7a0fe597d241d442b","tarball":"https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.1.tgz"},"maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/redis-commands-1.3.1.tgz_1485363355063_0.7909097610972822"},"directories":{}}},"readme":"# Redis Commands\n\n[](https://travis-ci.org/NodeRedis/redis-commands)\n[](https://codeclimate.com/github/NodeRedis/redis-commands)\n[](https://codeclimate.com/github/NodeRedis/redis-commands/coverage)\n\nThis module exports all the commands that Redis supports.\n\n## Install\n\n```shell\n$ npm install redis-commands\n```\n\n## Usage\n\n```javascript\nvar commands = require('redis-commands');\n```\n\n`.list` is an array contains all the lowercased commands:\n\n```javascript\ncommands.list.forEach(function (command) {\n console.log(command);\n});\n```\n\n`.exists()` is used to check if the command exists:\n\n```javascript\ncommands.exists('set') // true\ncommands.exists('other-command') // false\n```\n\n`.hasFlag()` is used to check if the command has the flag:\n\n```javascript\ncommands.hasFlag('set', 'readonly') // false\n```\n\n`.getKeyIndexes()` is used to get the indexes of keys in the command arguments:\n\n```javascript\ncommands.getKeyIndexes('set', ['key', 'value']) // [0]\ncommands.getKeyIndexes('mget', ['key1', 'key2']) // [0, 1]\n```\n\n## Acknowledgment\n\nThank [@Yuan Chuan](https://github.com/yuanchuan) for the package name. The original redis-commands is renamed to [@yuanchuan/redis-commands](https://www.npmjs.com/package/@yuanchuan/redis-commands).\n","maintainers":[{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"luin","email":"i@zihua.li"}],"time":{"modified":"2017-01-25T16:55:56.877Z","created":"2013-04-25T15:21:37.072Z","0.0.1":"2013-04-25T15:21:42.815Z","0.0.2":"2013-04-28T05:06:03.158Z","0.0.3":"2013-05-27T15:55:37.263Z","1.0.0":"2015-10-31T14:31:26.745Z","1.0.1":"2015-11-23T23:35:51.270Z","1.0.2":"2016-01-03T03:37:11.815Z","1.1.0":"2016-02-09T16:03:19.208Z","1.2.0":"2016-04-21T01:34:28.844Z","1.3.0":"2016-10-20T19:53:00.963Z","1.3.1":"2017-01-25T16:55:56.877Z"},"author":{"name":"luin","email":"i@zihua.li","url":"http://zihua.li"},"repository":{"type":"git","url":"git+https://github.com/NodeRedis/redis-commands.git"},"keywords":["redis","commands","prefix"],"bugs":{"url":"https://github.com/NodeRedis/redis-commonds/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/NodeRedis/redis-commonds","users":{"xufz":true,"mojaray2k":true},"_attachments":{},"_etag":"W/\"5888d89c-395e\"","_lastModified":"Wed, 25 Jan 2017 16:55:56 GMT","_cached":true} |