A small utility (v0.0.2, last updated in 2014) for parsing redis:// URLs into node_redis configuration objects. Unlike general URL parsers, this is tailored specifically to node_redis, handling host, port, password, and database number. Also provides a convenience method to create a node_redis client directly from the URL. No releases in years, likely unmaintained. Minimal dependencies, but requires the redis package at usage time.
npm install parse-redis-urlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require, initialize with the redis module, parse a Redis URL, and create a client.
Require the redis module and call require('parse-redis-url')(redis) before using the returned object.Consider using ioredis's built-in Redis URL support or a more modern alternative like redis-url-parser.
Always provide a callback function when using createClient.
Use Node.js 0.10 or later.
var parseRedisUrl = require('parse-redis-url')(redis);Ensure you call require('parse-redis-url')(redis) and capture the returned object.No dependency data recorded yet.