A CLI and library to look up download URLs for MongoDB versions by platform, architecture, and debug builds. Current stable version 1.8.13 is maintained as part of the MongoDB DevTools Shared monorepo. It resolves version strings to official MongoDB download URLs, supporting semver-like version specs. Unlike manual parsing of MongoDB's download page, it programmatically handles version resolution across platforms (linux, osx, win) and architectures (x64, arm64).
npm install mongodb-download-urlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the default export to get a MongoDB download URL for a specific version, platform, and architecture.
Use a specific semver version (e.g., '7.0.0') to get deterministic URLs.
Always await the call or use .then().catch().
Explicitly pass platform: 'osx' when running on macOS.
Pass version: 'latest' explicitly if that behavior is desired.
Set platform: 'osx' in options.
Use import getMongoDBDownloadUrl from 'mongodb-download-url' or const getMongoDBDownloadUrl = require('mongodb-download-url').Check the version is correct and available on mongodb.com/download-center.
No dependency data recorded yet.