JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 289
  • Score
    100M100P100Q70696F

Wait for a Postgres connection to become available

Package Exports

  • wait-for-postgres

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wait-for-postgres) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Wait for Postgres

Waits for a PostgreSQL connection to become available, optionally running a custom query to determine if the connection is valid.

Installation

npm install --save wait-for-postgres

Usage

Run as a module within another script:

waitForPg = require 'wait-for-postgres'
config =
  username: user
  password: pass
  quiet: true
  query: 'SELECT 1'

waitForPg.wait(config)

Or run stand-alone

wait-for-postgres --username=user --password=pass --quiet

Building

cake build