Wait for (PostgresSQL|RabbitMQ|Redis) server is available
npm install @swarthy/wait-for

_wait-for_ will try connect to server then exit with code 0 if server is available and 1 otherwise.
``bash`
wait-for --postgresql postgres://postgres@localhost && npm run test-integrationor
POSTGRESQL_URI=postgres://postgres@localhost wait-for --postgresql && npm run test-integration
`bash`
wait-for --rabbitmq amqp://localhost && npm run test-integrationor
RABBITMQ_URI=amqp://localhost wait-for --rabbitmq && npm run test-integration
`bash`
wait-for --redis redis://localhost && npm run test-integrationor
REDIS_URI=redis://localhost wait-for --redis && npm run test-integration
Wait for PostgreSQL, RabbitMQ and Redis (configured via environment)
`bash`
wait-for --postgresql --rabbitmq --redis && npm run test-integration
| CLI argument | Environment variable | Description | Default |
| ------------------ | -------------------- | ---------------------- | ------- |
| --postgressql | POSTGRESQL_URI | Connection string | |RABBITMQ_URI
| --rabbitmq | | Connection string | |REDIS_URI` | Connection string | |
| --redis |
| -c, --max-attempts | | Max attempt count | 60 |
| -d, --delay | | Delay between attempts | 1000 |
| -q, --quiet | | Quiet mode | |