Minimal npm package (v0.0.3) that parses Redis connection URLs into options objects. Last updated in 2015, no active maintenance. Parses host, port, password from URLs like redis://user:pass@host:port/db. Simpler alternative to redis-url or ioredis parsing, but lacks features like TLS, sentinel, or cluster support. Over 1 million weekly downloads due to inclusion in other packages, but unmaintained.
npm install redis-url-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a Redis URL into connection options using CommonJS require. Outputs host, port, password, and database.
Use ioredis or redis package with URL parsing if TLS is needed.
Coerce to integer: parseInt(options.database, 10) or Number(options.database).
Use ioredis or redis-sentinel for sentinel/cluster.
Migrate to ioredis (built-in parsing) or the 'redis' package's URL parsing.
Use redisParser.parse(url);
Run 'npm install redis-url-parser' and ensure require path is correct.
Ensure URL string is valid and use redisParser.parse(url). Check result is not null.
No dependency data recorded yet.