{ "name": "hiredis", "description": "Wrapper for reply processing code in hiredis", "version": "0.1.16", "homepage": "http://github.com/pietern/hiredis-node", "author": { "name": "Pieter Noordhuis", "email": "pcnoordhuis@gmail.com" }, "main": "hiredis", "scripts": { "test": "node test/reader.js", "install": "node-gyp rebuild" }, "dependencies": { "bindings": "*" }, "engines": { "node": ">= 0.6.0" }, "repository": { "type": "git", "url": "git@github.com:pietern/hiredis-node.git" }, "bugs": { "url": "https://github.com/pietern/hiredis-node/issues" }, "licenses": [ { "type": "BSD", "url": "https://github.com/pietern/hiredis-node#license" } ], "gypfile": true, "readme": "[![Build Status](https://travis-ci.org/pietern/hiredis-node.png?branch=master)](https://travis-ci.org/pietern/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 noticable 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\n[npm]: https://npmjs.org/\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() // => \n```\n\n[node_redis]: http://github.com/mranney/node_redis\n\n## Windows\n\nDmitry Gorbunov (@fuwaneko) made a [fork of hiredis-node][windows_fork] with Windows support.\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", "readmeFilename": "README.md", "_id": "hiredis@0.1.16", "dist": { "shasum": "86206f372ee8ecf0f7a61ea9a5deb9fd4cf90089" }, "_from": "hiredis@", "_resolved": "https://registry.npmjs.org/hiredis/-/hiredis-0.1.16.tgz" }