A Node.js library for exporting and importing MongoDB documents using mongodump and mongorestore. Version 0.2.5, last updated 2018. Only supports Linux x64 and macOS x64. Provides a programmatic API to backup/restore databases or collections, with options for filtering collections via queries and dropping before restore. Limited to local MongoDB instances; no cloud or authentication beyond user/password.
npm install mongodb-ioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Exports a single MongoDB database to a tar.gz file using default config.
Consider using mongodump/mongorestore directly or a maintained alternative.
Ensure MongoDB Database Tools are installed and in PATH.
Use a different migration tool or run in a Docker container.
Check the console output from mongodump/mongorestore for actual error details.
Add "type": "module" to package.json or use dynamic import().