A Node.js package for streaming MongoDB backups, forked from hex7c0/mongodb-backup with PR #22 merged. Version 1.6.12 is the latest stable; low maintenance cadence. Supports streaming backup to streams or files via a simple streaming API. Differentiated by its streaming approach vs. exec-based mongodump alternatives. Requires Node >=4.
npm install mongodb-backup-streamingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Streams a MongoDB collection backup to stdout, demonstrating streaming usage with event handlers.
Pin mongodb driver version or use a different backup solution.
Use stream API (data, error, end events) or async/await with pipeline.
Ensure MongoDB server is accessible via the provided URI.
Specify a 'output' option or pipe to a file stream.
Run 'npm install mongodb-backup-streaming'.
Use 'const backup = require('mongodb-backup-streaming');' (no .default) in CommonJS.Ensure you're calling backup() and chaining .on() on the returned stream.