A Node.js library to restore MongoDB dump data created by mongodb-backup. Version 1.6.2 supports BSON and JSON parsers, tar archives, streaming, and collection dropping. It provides a callback-based API for programmatic restore, complementing the CLI tool mongodb-restore-cli. Notable for being the restore counterpart of mongodb-backup, with support for metadata replication and custom parsers. Release cadence is sporadic with infrequent updates.
npm install mongodb-restoreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of mongodb-restore with BSON parser and drop option.
Upgrade to 1.4.2 or later (or use 1.2.x).
Use only 'bson' or 'json' as string, or provide a custom function.
Verify target database contents before enabling drop.
Ensure backup was created with the companion package mongodb-backup.
Run `npm install mongodb-restore`
Use `const restore = require('mongodb-restore')` (CJS) or wait for ESM wrapper.Check uri string: mongodb://user:password@host:port/db