A CLI tool that waits for a PostgreSQL database to become available before proceeding. Version 1.0.0 uses meow for CLI, pg for PostgreSQL client, and esm for ES module support. It's a minimal wrapper around pg's connection logic, suitable for CI/CD scripts or Docker entrypoints. No active development since 2020, so consider alternatives like wait-on or pg_isready for newer Node versions.
npm install wait-for-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates global install and running the CLI with default or custom DATABASE_URL.
Use child_process.execFile('npx', ['wait-for-pg']) or a library like wait-on for programmatic control.Consider using Node 20+ native ESM or replace with 'wait-on' or 'pg-connection-state'.
Install dependencies globally: npm install -g wait-for-pg or use npx wait-for-pg (npx automatically resolves dependencies).
Install globally: npm install -g wait-for-pg or use npx wait-for-pg.
Ensure PostgreSQL is running and connection string (DATABASE_URL or defaults) is correct.