A Node.js client for the Redis ReJSON module, built on top of ioredis (version 0.1.1). It provides a simple asynchronous API to manage JSON documents stored in Redis, supporting commands like JSON.SET, JSON.GET, JSON.DEL, and more. The library wraps ioredis and inherits its connection options. Compared to other Redis JSON clients, iorejson is lightweight and conforms to ioredis conventions. However, it is a low-traffic, early-stage package (last updated 2017) and may not be actively maintained. It does not support JSON.DEBUG, JSON.FORGET, or JSON.RESP. The package name 'rejson' was taken on npm, so it is published as iorejson.
npm install iorejsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting, setting a JSON document, getting a nested value, deleting a path, and disconnecting.
Consider using an alternative like 'redis-json' directly or the official 'redis' client with JSON module support.
Replace calls to .forget() with .del().
Explicitly await client.connect() before issuing commands.
Use CommonJS require or dynamic import().
Ensure you do const client = new Rejson(); then await client.connect();
Install the ReJSON module on your Redis server (e.g., using redis-stack or 'MODULE LOAD rejson.so').
Use CommonJS: const Rejson = require('iorejson');