Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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 0 weekly downloads. As such, get-mongodb-version popularity was classified as not 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.