An implementation of the REdis Serialization Protocol (RESP) for Node.js. Version 4.2.0 is stable, with infrequent releases. It provides encoding and decoding of RESP data (simple strings, errors, integers, bulk strings, arrays, nulls) as buffers. Key differentiators: low-level protocol handling, stream-based parsing, and support for pipelining. Unlike higher-level Redis clients, respjs focuses solely on the wire protocol, making it suitable for building custom Redis clients or tools. It is a dependency of thunk-redis and other libraries.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The library is CommonJS-only; there is no default ESM export in version 4.2.0.
Second argument is a boolean for bufBulk, not an object.
Takes a single array argument, not multiple arguments.
Shows how to use respjs to parse RESP data from a TCP socket to a Redis server, sending a PING command.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.