Automatically serializes JavaScript objects to JSON strings when using node_redis, and deserializes responses back to objects. Version 1.2.0 is stable, with no recent releases. It wraps the Redis client's send_command method to transparently convert non-Buffer values. Key differentiator: removes need for manual JSON.parse/stringify in Redis workflows. Compatible with most node_redis versions from 0.6.7 to 2.8.0 except 2.4.2 and 2.3.1.
npm install redis-jsonifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates transparent JSON serialization/deserialization for Redis set/get operations.
Use node_redis v2.8.0 or v0.6.7-2.3.0, or avoid those versions.
Ensure commands like LRANGE, LPOP etc. are handled manually or add to blacklist if needed.
Call jsonify(client) without new.
Ensure you are using CommonJS: const jsonify = require('redis-jsonify'); or configure bundler for CJS.Add the command to the blacklist: jsonify.blacklist.push('list');