{"name":"hiredis","description":"Wrapper for reply processing code in hiredis","version":"0.2.0","homepage":"http://github.com/redis/hiredis-node","author":{"name":"Jan-Erik Rediger","email":"janerik@fnordig.de"},"contributors":[{"name":"Pieter Noordhuis","email":"pcnoordhuis@gmail.com"}],"main":"hiredis","scripts":{"test":"node test/reader.js && node test/writer.js","install":"node-gyp rebuild"},"dependencies":{"bindings":"*","nan":"~1.5.0"},"engines":{"node":">= 0.8.0"},"repository":{"type":"git","url":"https://github.com/redis/hiredis-node.git"},"bugs":{"url":"https://github.com/redis/hiredis-node/issues"},"licenses":[{"type":"BSD","url":"https://github.com/redis/hiredis-node#license"}],"gypfile":true,"gitHead":"f992f212d92a76daa2871338bc06017cd42ea930","_id":"hiredis@0.2.0","_shasum":"34415bd11f8ddb61581ab2da39468515198d14a8","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"badboy_","email":"janerik@fnordig.de"},"maintainers":[{"name":"pietern","email":"pcnoordhuis@gmail.com"},{"name":"badboy_","email":"janerik@fnordig.de"}],"dist":{"shasum":"34415bd11f8ddb61581ab2da39468515198d14a8","tarball":"http://registry-npm.ywwl.com/hiredis/download/hiredis-0.2.0.tgz","integrity":"sha512-MHuP/3OasKV9LtroloULjCyhuTb7x7pKrWod4FXwm+TJLnmhILseII7+yqYcdicFBOGvuIraVHLVmKAPycd3Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwB0Q4o9udzzM0KjCkd7+pTFXBbVq+GhgCNMPsUMS5CQIhAP5OmiH9qsQYeHoxT0PQt0B7/FpqqKotvCthdVx+Fv5N"}],"size":61627,"noattachment":false,"key":"/hiredis/-/hiredis-0.2.0.tgz"},"directories":{},"readme":"[![Build Status](https://travis-ci.org/redis/hiredis-node.png?branch=master)](https://travis-ci.org/redis/hiredis-node)\n\n# hiredis-node\n\nNode extension that wraps [hiredis][hiredis].\nBecause Node is already good at doing I/O, hiredis-node only provides\nbindings to the protocol parser.\nThe hiredis protocol parser is faster than JavaScript protocol parsers,\nbut the speedup only becomes noticeable for large replies.\nIf you use Redis for simple SET/GET operations, there won't be a big\nbenefit to using hiredis.\nIf you use Redis for big SUNION/SINTER/LRANGE/ZRANGE operations, the\nbenefit to using hiredis-node can be significant.\n\n[hiredis]: http://github.com/redis/hiredis\n\n## Install\n\nInstall with [NPM][npm]:\n\n```\nnpm install hiredis\n```\n\nThis requires:\n* `gcc` / `g++` 4.8 or newer.\n* `python` 2.7 or any newer 2.x version. `python` 3.x is not supported.\n\nFor running on Travis check the bundled [.travis.yml](.travis.yml).\n\n[npm]: https://npmjs.org/\n\n## Contribute\n\nTo work on the code, first fetch the bundled hiredis submodule, then build hiredis and run the tests.\n\n```\ngit submodule update --init\nnpm install\nnpm test\n```\n\n## Usage\n\nhiredis-node works out of the box with Matt Ranney's [node_redis][node_redis].\nThe latter has an optional dependency on hiredis-node, so maybe you're\nalready using it without knowing.\n\nAlternatively, you can use it directly:\n\n```javascript\nvar hiredis = require(\"hiredis\"),\n    reader = new hiredis.Reader();\n\n// Data comes in\nreader.feed(\"$5\\r\\nhello\\r\\n\");\n\n// Reply comes out\nreader.get() // => \"hello\"\n```\n\nInstead of returning strings for bulk payloads, it can also return\nbuffers:\n\n```javascript\nvar hiredis = require(\"hiredis\"),\n    reader = new hiredis.Reader({ return_buffers: true });\n\n// Data comes in\nreader.feed(\"$5\\r\\nhello\\r\\n\");\n\n// Reply comes out\nreader.get() // => <Buffer 68 65 6c 6c 6f>\n```\n\n[node_redis]: http://github.com/mranney/node_redis\n\n## Windows\n\nSince Version 0.3.0 hiredis-node officially supports Windows.\nA simple `npm install hiredis` should just work.\nIf not, please open a bug report.\n\nThere's also a [Windows fork][windows_fork] by Dmitry Gorbunos (@fuwaneko), which should now be unnecessary.\n\n[windows_fork]: https://github.com/fuwaneko/hiredis-node\n\n## License\n\nThis code is released under the BSD license, after the license of hiredis.\n","publish_time":1423413166672,"_cnpm_publish_time":1423413166672,"dist-tags":{"latest":"0.5.0"}}