A CLI tool and Node.js library (v1.0.2) that checks if MongoDB is running on the system, reports the port and PID of each instance. Works with callback or promises, supports CLI flags for port/PID filtering and JSON output. Lightweight with no external dependencies; simple and focused.
npm install is-mongodb-runningNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Checks if MongoDB is running locally and logs the port and PID of each instance using callback API.
Use MongoDB connection method (e.g., mongoose.connect) for remote checks.
Ensure required system utilities are available; consider using Docker or a more robust monitoring solution for cross-platform support.
Use --json flag only in CLI context; library function already returns structured data.
Install lsof (e.g., apt-get install lsof or apk add lsof) or run as root/user with sufficient privileges.
Use require() instead: const isRunning = require('is-mongodb-running');Use Node.js >=12 or use callback API.
No dependency data recorded yet.