Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redis-connection-object-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-connection-object-generator

Parse a given url to generate a connection object to be used in redis client modules (supports sentinel schema urls)

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

Using npm:

npm install --save redis-connection-object-generator

Using

const redisConnectionObjectGenerator = require('redis-connection-object-generator')

redisConnectionObjectGenerator('redis://:@127.0.0.1:6379/0')
// { host: '127.0.0.1', port: 6379, family: 0, password: '', db: 0 }

redisConnectionObjectGenerator(`sentinel://:password@127.0.0.1:6380,127.0.0.1:6379,127.0.0.1:6378/service_name:mymaster`)
/*
{ name: 'mymaster',
  sentinels:
   [ { host: '127.0.0.1', port: 6380 },
     { host: '127.0.0.1', port: 6379 },
     { host: '127.0.0.1', port: 6378 } ],
  password: 'password' }
*/

FAQs

Package last updated on 04 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc