redis-bull-parser

1.0.2 • Public • Published

redis-bull-parser

Simple package to parse redis URL created with dokku into the format Bull queue is expecting

Simple parser function to automatically create the redis object that the Bull queue is expecting from a redis instance created with dokku-redis (https://github.com/dokku/dokku-redis) in the REDIS_URL env variable.

const redisBullParser = require('redis-bull-parser');
const redisBullObject = redisBullParser('redis://:secretpassword@generichostname:123')
console.log(redisBullObject)
{
    redis: {
		password: 'secretpassword',
		host: 'generichostname',
		port: 123
	}
}
const randomQueue = new BullQueue('random queue', redisBullObject) 

Hope that can save people some times

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i redis-bull-parser

      Weekly Downloads

      1

      Version

      1.0.2

      License

      ISC

      Unpacked Size

      1.48 kB

      Total Files

      3

      Last publish

      Collaborators

      • kwalish