Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redisparse

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redisparse

Streaming Redis response parser

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
260
increased by25.6%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

redisparse

Streaming Redis response parser.

Does not do any data buffering or bail out on incomplete input data. Every chunk is processed separately.

API is mostly compatible with mranney/node_redis with added support for partial replies.

Installation

npm install redisparse

Usage

var Parser = require('redisparse').Parser
var parser = new Parser
parser.execute(data)

new Parser([options])

options.return_buffers - Return buffers for replies.

execute(buffer)

Input binary redis response data to the parser.

Events

reply - Result for a command. Type depends on command. Can be string, buffer, integer, array or null.

reply partial - Same as reply but more replies are coming.

reply error - Redis command error.

error - Parsing error. Invalid data.

Keywords

FAQs

Package last updated on 14 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc