A simple utility to check if a PostgreSQL database server is running. The latest stable version is v0.2.0, released in 2014. It provides both callback and promise APIs, as well as a CLI tool. No longer actively maintained; considered feature-complete for its narrow scope. Alternatives include more comprehensive database health-check libraries.
npm install is-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows both callback and promise usage to check if PostgreSQL is running.
Use a more comprehensive tool like pg-ping or a full database connection test for production checks.
Use the promise-based API: isPostgres().then(...) or use async/await.
Use npx is-postgres to avoid global install, or check the package.json bin entry.
Run 'npm install is-postgres' in your project directory.
Use 'const isPostgres = require("is-postgres");' or 'import isPostgres from "is-postgres";'.No dependency data recorded yet.