package.json 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "_args": [
  3. [
  4. "redis-lua2@~1.0.2",
  5. "D:\\work\\im"
  6. ]
  7. ],
  8. "_from": "redis-lua2@>=1.0.2 <1.1.0",
  9. "_id": "redis-lua2@1.0.2",
  10. "_inCache": true,
  11. "_installable": true,
  12. "_location": "/redis-lua2",
  13. "_npmUser": {
  14. "email": "npm@fgribreau.com",
  15. "name": "fgribreau"
  16. },
  17. "_npmVersion": "1.1.49",
  18. "_phantomChildren": {},
  19. "_requested": {
  20. "name": "redis-lua2",
  21. "raw": "redis-lua2@~1.0.2",
  22. "rawSpec": "~1.0.2",
  23. "scope": null,
  24. "spec": ">=1.0.2 <1.1.0",
  25. "type": "range"
  26. },
  27. "_requiredBy": [
  28. "/"
  29. ],
  30. "_resolved": "https://registry.npmjs.org/redis-lua2/-/redis-lua2-1.0.2.tgz",
  31. "_shasum": "d096fb5284ac728e1b4ed9a56f66023528f19296",
  32. "_shrinkwrap": null,
  33. "_spec": "redis-lua2@~1.0.2",
  34. "_where": "D:\\work\\im",
  35. "author": {
  36. "email": "npm@fgribreau.com",
  37. "name": "Francois-Guillaume Ribreau",
  38. "url": "http://fgribreau.com"
  39. },
  40. "bugs": {
  41. "url": "https://github.com/FGRibreau/node-redis-lua/issues"
  42. },
  43. "dependencies": {
  44. "lodash": "~0.7.0"
  45. },
  46. "description": "Adds lua scripting to node_redis",
  47. "devDependencies": {},
  48. "directories": {},
  49. "dist": {
  50. "shasum": "d096fb5284ac728e1b4ed9a56f66023528f19296",
  51. "tarball": "https://registry.npmjs.org/redis-lua2/-/redis-lua2-1.0.2.tgz"
  52. },
  53. "engines": {
  54. "node": "*"
  55. },
  56. "files": [
  57. "README",
  58. "redis-lua.js",
  59. "package.json"
  60. ],
  61. "homepage": "https://github.com/FGRibreau/node-redis-lua",
  62. "keywords": [
  63. "redis",
  64. "scripting",
  65. "lua"
  66. ],
  67. "licenses": [
  68. {
  69. "type": "MIT",
  70. "url": "http://opensource.org/licenses/mit-license.php"
  71. }
  72. ],
  73. "main": "./redis-lua.js",
  74. "maintainers": [
  75. {
  76. "email": "npm@fgribreau.com",
  77. "name": "fgribreau"
  78. }
  79. ],
  80. "name": "redis-lua2",
  81. "optionalDependencies": {},
  82. "readme": "Fork of **node_redis_lua** by shirro\n====================================\n\nPatch redis script commands into node-redis prototype.\n\n## Npm\n\n npm install redis-lua2\n\n## Usage\nFirst attach `redis-lua` to `node_redis`:\n\n redis = require('redis');\n require('redis-lua2').attachLua(redis)\n\nThen define some scripts (scripts may take an _unlimited_ number of arguments):\n\n redis.lua('myset', 'return redis.call(\"set\", KEYS[1], KEYS[2])');\n\nIf the last parameter is set to `true` the command result will be converted to a JavaScript\nobject literal:\n\n redis.lua('hashtest, 0, 'return redis.call(\"hgetall\", \"something\")', true);\n\nFinally create a redis client and call the script like a regular redis command:\n\n r = redis.createClient();\n r.myset(2, 'testing', 'surprise', redis.print);\n\nNote: `2` is the number of keys that the script will receive. Arrays are also supported:\n\n var args = ['testing', 'surprise']\n , r = redis.createClient();\n r.myset(args.length, args, function(err, res){console.log(arguments)});\n\nThe lua script will be passed by `eval` the first time and subsequent calls by `evalsha`.\n",
  83. "repository": {
  84. "type": "git",
  85. "url": "git://github.com/FGRibreau/node-redis-lua.git"
  86. },
  87. "version": "1.0.2"
  88. }