{"_id":"mongodb-build-info","_rev":"2964148","name":"mongodb-build-info","description":"Extract information from mongodb's buildInfo","dist-tags":{"latest":"1.5.0"},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"time":{"modified":"2023-05-08T06:30:54.000Z","created":"2020-04-28T08:00:15.203Z","1.5.0":"2023-01-06T17:09:24.976Z","1.4.0":"2022-01-20T16:38:48.392Z","1.3.0":"2021-11-29T19:03:27.129Z","1.2.0":"2021-07-01T08:46:51.000Z","1.1.1":"2020-10-26T14:26:08.806Z","1.1.0":"2020-05-13T16:29:06.033Z","1.0.0":"2020-04-28T08:00:15.203Z"},"users":{},"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"versions":{"1.5.0":{"name":"mongodb-build-info","version":"1.5.0","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"lint":"eslint .","depcheck":"depcheck","check":"npm run depcheck && npm run lint","test":"mocha test/index.spec.js","release":"release-it"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","depcheck":"^1.4.2","eslint":"^8.3.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","release-it":"^14.11.8"},"dependencies":{"mongodb-connection-string-url":"^2.2.0"},"release-it":{},"types":"./index.d.ts","gitHead":"9247eeba730a905397ad09fe5a377067edc49b34","_id":"mongodb-build-info@1.5.0","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"a30911f1eff083d29928d283f3f78d1f27f9b318","size":9150,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.5.0.tgz"},"_npmUser":{"name":"rhysm","email":"rhys.howell@10gen.com"},"directories":{},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.5.0_1673024964735_0.8500295965990232"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-06T17:47:46.446Z","publish_time":1673024964976,"_cnpm_publish_time":1673024964976},"1.4.0":{"name":"mongodb-build-info","version":"1.4.0","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"lint":"eslint .","depcheck":"depcheck","check":"npm run depcheck && npm run lint","test":"mocha test/index.spec.js","release":"release-it"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","depcheck":"^1.4.2","eslint":"^8.3.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","release-it":"^14.11.8"},"dependencies":{"mongodb-connection-string-url":"^2.2.0"},"release-it":{},"gitHead":"d230f658e7b8137c47972491dd7f2fd03d8cacf7","_id":"mongodb-build-info@1.4.0","_nodeVersion":"14.18.0","_npmVersion":"7.16.0","dist":{"shasum":"5d531434aab8dde09e572cb215bc6a64cf4ed58b","size":9175,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.4.0.tgz"},"_npmUser":{"name":"mabaasit","email":"baasit121@yahoo.com"},"directories":{},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.4.0_1642696728237_0.22412502653294308"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-20T16:39:14.784Z","publish_time":1642696728392,"_cnpm_publish_time":1642696728392},"1.3.0":{"name":"mongodb-build-info","version":"1.3.0","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"lint":"eslint .","depcheck":"depcheck","check":"npm run depcheck && npm run lint","test":"mocha test/index.spec.js","release":"release-it"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","depcheck":"^1.4.2","eslint":"^8.3.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","release-it":"^14.11.8"},"dependencies":{"mongodb-connection-string-url":"^2.2.0"},"release-it":{},"types":"./index.d.ts","gitHead":"2942dff00210a6cfb03e971dca54b4ed049aefd5","_id":"mongodb-build-info@1.3.0","_nodeVersion":"14.18.1","_npmVersion":"7.24.2","dist":{"shasum":"a5973f2ed8fd5875e1856250976d93898e4de73d","size":9155,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.3.0.tgz"},"_npmUser":{"name":"mcasimir","email":"maurizio.cas@gmail.com"},"directories":{},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.3.0_1638212606926_0.15564007584618444"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T23:01:09.889Z","publish_time":1638212607129,"_cnpm_publish_time":1638212607129},"1.2.0":{"name":"mongodb-build-info","version":"1.2.0","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"check":"mongodb-js-precommit","test":"mocha test/index.spec.js"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","mongodb-js-precommit":"^2.2.1"},"gitHead":"a8b4c22b46e271dfcb0a620d19afc5a7c7df3d8f","_id":"mongodb-build-info@1.2.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"32d278a62e26e71738a680810c1a7853c4e45adf","size":8314,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.2.0.tgz"},"_npmUser":{"name":"rosem","email":"michael_rose@gmx.de"},"directories":{},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.2.0_1625129210846_0.38710212871680416"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T23:01:09.799Z","publish_time":1625129211000,"_cnpm_publish_time":1625129211000},"1.1.1":{"name":"mongodb-build-info","version":"1.1.1","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"check":"mongodb-js-precommit","test":"mocha test/index.spec.js"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","mongodb-js-precommit":"^2.2.1"},"gitHead":"fc4a7382907751c2e32a002d348b41eed2137d37","_id":"mongodb-build-info@1.1.1","_nodeVersion":"12.4.0","_npmVersion":"6.13.7","dist":{"shasum":"02ca23a91322088ae1ae40e5410f5099b13fe5ac","size":8184,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.1.1.tgz"},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmUser":{"name":"lrlna","email":"shestak.irina@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.1.1_1603722368586_0.9236160547865502"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T23:01:09.708Z","publish_time":1603722368806,"_cnpm_publish_time":1603722368806},"1.1.0":{"name":"mongodb-build-info","version":"1.1.0","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"check":"mongodb-js-precommit","test":"mocha test/index.spec.js"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","mongodb-js-precommit":"^2.2.1"},"gitHead":"b8343c3d67837e690cec38d93b11ebb7b6bc91b0","_id":"mongodb-build-info@1.1.0","_nodeVersion":"12.4.0","_npmVersion":"6.13.7","dist":{"shasum":"50bb9987d0a073c18dd6726a4304b1fe41afbfb1","size":8054,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.1.0.tgz"},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmUser":{"name":"lrlna","email":"shestak.irina@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.1.0_1589387345953_0.03444667680600366"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T23:01:08.771Z","publish_time":1589387346033,"_cnpm_publish_time":1589387346033},"1.0.0":{"name":"mongodb-build-info","version":"1.0.0","description":"Extract information from mongodb's buildInfo","main":"index.js","scripts":{"check":"mongodb-js-precommit","test":"mocha test/index.spec.js"},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/mongodb-build-info.git"},"keywords":["buildInfo","mongodb","compass-tools","mongodb.js"],"author":{"name":"Irina Shestak","email":"shestak.irina@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","devDependencies":{"chai":"^4.2.0","eslint-config-mongodb-js":"^5.0.3","mocha":"^7.1.2","mongodb-js-precommit":"^2.2.1"},"gitHead":"e06787c43e3e6154393514dd7ffeb0b30ae06c90","_id":"mongodb-build-info@1.0.0","_nodeVersion":"12.4.0","_npmVersion":"6.13.7","dist":{"shasum":"ad42485ebf98fde0bc69cd117b4d138d1b2bcab0","size":7871,"noattachment":false,"key":"/mongodb-build-info/-/mongodb-build-info-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mongodb-build-info/download/mongodb-build-info-1.0.0.tgz"},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"lrlna","email":"shestak.irina@gmail.com"},{"name":"mabaasit","email":""},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"}],"_npmUser":{"name":"lrlna","email":"shestak.irina@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongodb-build-info_1.0.0_1588060815092_0.8603207322887736"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T23:01:07.893Z","publish_time":1588060815203,"_cnpm_publish_time":1588060815203}},"readme":"# mongodb-build-info\n\nHelpful functions to figure out if a connection is on Atlas, Atlas Data Lake,\nEnterpise, or DocumentDB/CosmosDB.\n\n# Usage\n```js\nconst getBuildInfo = require('mongodb-build-info')\nconst MongoClient = require('mongodb').MongoClient\n\nMongoClient.connect('localhost:27017', function (err, client) {\n  const adminDB = client.db('test').admin()\n  let buildInfo;\n\n  adminDB.command({ buildInfo: 1 }, {}, parseBuildInfo)\n  adminDB.command({ getCmdLineOpts: 1 }, {}, parseCmdLineOpts)\n\n  function parseBuildInfo (err, res) {\n    if (err) console.log('Command failed, ', err)\n    buildInfo = res\n\n    const { isDataLake, dlVersion } = getBuildInfo.getDataLake(buildInfo)\n    const isEnterprise = getBuildInfo.isEnterprise(buildInfo)\n  }\n\n  function parseCmdLineOpts (err, res) {\n    if (err) console.log('Command failed', err.message)\n    \n    const { isGenuine, serverName } = getGenuineMongoDB(buildInfo, res)\n  }\n})\n```\n\n## API\n### getDataLake(buildInfo)\nReturns an object:\n\n__isDataLake__: boolean. \n__dlVersion__: version of dataLake, a string.\n\n### isEnterprise(buildInfo)\nReturns a boolean.\n\n### isAtlas(uri)\nReturns a boolean.\n\n### isLocalhost(uri)\nReturns a boolean.\n\n### isDigitalOcean(uri)\nReturns a boolean.\n\n### getGenuineMongoDB(buildInfo, cmdLineOpts)\nReturns an object:\n\n__isGenuine__: boolean. \n__serverName__: name of the server (mongoDB, cosmosDB, or documentDB).\n\n### getBuildEnv(buildInfo)\nReturns an object:\n\n__serverOs__: build's OS version (macOS, linux, windows etc.).\n__serverArch__: build's architecture (e.g. x86_64).\n\n# Installation\n```\nnpm install -S mongodb-build-info\n```\n\n# License\nApache-2.0\n","_attachments":{},"homepage":"https://github.com/mongodb-js/mongodb-build-info#readme","bugs":{"url":"https://github.com/mongodb-js/mongodb-build-info/issues"},"license":"Apache-2.0"}