title: How to use zscan in Redis using Node.js.?
body: <p>I want to use 'ZSCAN' command in node.js to hit redis for results. I went thru node-redis-streamify and also other packages of node modules for the same but i am not able to execute this command. It would be great if I could get a sample usage of 'ZSCAN' command using any desired package.</p>
  
  <p>npm package : node-redis-streamify: </p>
  
  <p>Code : </p>
  
  <pre><code>                    var key = 'find:a';
                      var pattern = 'find:' + '*';
                      var count = 2;
                      var zscan = redis.streamified('ZSCAN');
                      zscan(key,pattern,count)
                          .on('data', function (data) {
                              console.log("++++++++++++++++++");
                              console.log(data);
                              console.log("++++++++++++++++++");
                              cb(null,data);
                          })
                          .on('error', function (err) {
                              console.log("Redis Error",err);
                              return err;
                          }).on('end', function () {
  
                          });
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Redis Error { [Error: ERR invalid cursor] command: 'ZSCAN', code: 'ERR' }
  </code></pre>
  
  <p>Any leads would be great. Thanks.</p>