
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
get-mongodb-version
Advanced tools
Lookup download URL's for MongoDB versions.
# For general utility, install globally
npm install -g get-mongodb-version
# If including in another module, install locally
npm install get-mongodb-version
Usage: get-mongodb-version
Get the MongoDB version for a path or uri.
Usage:
get-mongodb-version
# /usr/bin/env mongod --version
get-mongodb-version /usr/local/bin/mongod
# /usr/local/bin/mongod --version
get-mongodb-version localhost:27017
# Connects to mongodb://localhost:27017
# and prints db.admin().serverInfo().version
get-mongodb-version mongodb://my.mongodb.com:27017/mydb
# Connects to mongodb://my.mongodb.com:27017/mydb
# and prints db.admin().serverInfo().version
Options:
-h --help Show this screen.
--version Show version.
var getMongodbVersion = require('get-mongodb-version');
getMongodbVersion(opts, function done (err, version) { })
opts
- mongodb.Db
If opts
is the result of require('mongodb').connect(function(err, db){})
,
the version will be pulled from db.admin().serverInfo().version
path
- File Path to mongod
path
- mongodb uri
err
- Error
Contains errors if any.
version
- String
The version discovered.
Apache 2.0
FAQs
Get the MongoDB version for a path or uri.
The npm package get-mongodb-version receives a total of 3,813 weekly downloads. As such, get-mongodb-version popularity was classified as popular.
We found that get-mongodb-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 46 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.