Socket
Socket
Sign inDemoInstall

@swarthy/wait-for

Package Overview
Dependencies
54
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @swarthy/wait-for

Wait for (PostgresSQL|RabbitMQ|Redis) server is available


Version published
Maintainers
1
Created

Readme

Source

wait-for

npm

wait-for-xxx will try connect to server then exit with code 0 if server is available and 1 otherwise.

Usage

PostgreSQL

POSTGRESQL_URI=postgres://postgres@localhost wait-for-postgres && npm run test-integration

RabbitMQ

RABBITMQ_URI=amqp://localhost wait-for-rabbit && npm run test-integration

Redis

REDIS_URI=redis://localhost wait-for-redis && npm run test-integration

Configuration

Environment variableDefault valueDescription
POSTGRESQL_URIpostgres://postgres@localhostConnection string
RABBITMQ_URIamqp://localhostConnection string
REDIS_URIredis://localhostConnection string
MAX_ATTEMPTS60Max attempt count
DELAY1000Delay between attempts

wait-for will try connect to RabbitMQ server and exit with code 0 if server is available and 1 otherwise.

Used packages

amqplib pg redis

Keywords

FAQs

Last updated on 05 Apr 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc