A Node.js library for backing up and restoring Redis data by exporting keys and values. The current version is 0.2.1, last updated in 2014, with no recent releases. It relies on the redis npm package and operates by connecting to a Redis instance and scanning keys. The library provides a simple API to dump all data to a format that can be re-imported. Unlike more modern tools like redis-dump-go or redis-commander's export, this package is outdated, not actively maintained, and uses callbacks without promise support.
npm install node-redis-dumpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Redis, exports all keys via SCAN, and logs the result as a formatted dump.
Consider alternatives like redis-dump-go or using built-in Redis commands (e.g., redis-cli --rdb).
Do not rely on compression; output will always be uncompressed.
Wrap in a Promise manually if using async/await: new Promise((resolve, reject) => dump.export({ callback: (err, data) => err ? reject(err) : resolve(data) }));Always pass a single object: new RedisDump({ host: '...', port: 6379 });Ensure Redis is running: redis-server or check host/port configuration.
Always call dump.connect() after creating the instance and before calling export.
Clone the repository from GitHub and require the local path: const RedisDump = require('./node-redis-dump');