A beginner-friendly key-value MongoDB wrapper that mimics the quick.db API. Version 1.0.1 is current with a moderate release cadence. It provides asynchronous dot-notation access, import/export from quick.db, and multiple model support. Differentiated by its simplicity and similarity to quick.db, making it easy for those already familiar with quick.db to switch to MongoDB. Ships TypeScript definitions.
npm install quick.mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup with connection string, ready event, and set/get operations.
Always handle promises with .then() or await in async functions.
Wrap initial operations inside the 'ready' callback or use db.ready() promise.
Use db.set('user', {}) first if you need to ensure nesting exists.If you need multiple connections, create separate Database instances.
Ensure you pass a valid MongoDB URI: new Database('mongodb://...')Use const { Database } = require('quick.mongodb'); (named destructuring)Wait for 'ready' event or use db.ready() before calling methods.