get-mongodb-version

JSON →
library 2.0.1 ·javascript maintenance
verified Jun 5, 2026

CLI and API to retrieve the MongoDB version from a local mongod binary path, a running MongoDB URI, or a Db instance. v2.0.1 is stable but low activity; maintained as part of MongoDB-js ecosystem. Differentiates from manual parsing by abstracting `--version` execution and server connection/serverInfo queries into a single function call.