mongodb-legacy

JSON →
library 6.1.3 ·javascript
verified Jun 5, 2026

A wrapper around the official MongoDB Node.js driver that adds back optional callback support, intended to help projects migrate incrementally from callbacks to promises/async-await. The main mongodb driver dropped optional callbacks in v5. This package (v6.1.3) wraps mongodb v6, is actively maintained, ships TypeScript types, and requires Node >=16.20.1. It uses a caret semver range on mongodb to automatically pull in minor/patch updates. Performance penalty is minimal but present. Not recommended for new projects; use the native driver directly.