Wrapper for reply processing code in hiredis(works with solaris)
Install with NPM:
npm install hiredis
hiredis-node works out of the box with Matt Ranney's node_redis. The latter has an optional dependency on hiredis-node, so maybe you're already using it without knowing.
Alternatively, you can use it directly:
var hiredis = require"hiredis"reader = ;// Data comes inreaderfeed"$5\r\nhello\r\n";// Reply comes outreaderget // => "hello"
Instead of returning strings for bulk payloads, it can also return buffers:
var hiredis = require"hiredis"reader = return_buffers: true ;// Data comes inreaderfeed"$5\r\nhello\r\n";// Reply comes outreaderget // => <Buffer 68 65 6c 6c 6f>
This code is released under the BSD license, after the license of hiredis.