A Node.js library and CLI tool for downloading prebuilt MongoDB binary packages (zip/tgz) from MongoDB's official download center. Current version 2.2.6, with low release cadence. Supports specifying version, architecture (ia32/x64), platform (win32, darwin, linux, etc.), and custom download directory. The package ships TypeScript declarations. Differentiator: it wraps the HTTPS download logic, allowing proxy agent injection for corporate environments. Integrates with testing tools like mongodb-memory-server.
npm install mongodb-download-httpsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Downloads MongoDB 3.0.6 for 64-bit Linux using the ES module syntax with TypeScript type support.
Use `const { MongoDBDownload } = require('mongodb-download')` for CJS, or `import { MongoDBDownload } from 'mongodb-download'` for ESM.Use `platform: 'darwin'` for macOS downloads.
Use `const HttpsProxyAgent = require('https-proxy-agent'); new HttpsProxyAgent({ ... })` and pass as `http.agent`.Ensure you are using a recent version of the package (2.2.6) which sets an appropriate User-Agent.
Run `npm install mongodb-download` and ensure your require path is correct.
Use `const { MongoDBDownload } = require('mongodb-download')` instead of `const MongoDBDownload = require('mongodb-download')`.