An unofficial wrapper around the MongoDB Node.js driver that provides a console-like API for CRUD operations. Version 1.0.3 is the latest stable release, though the package is effectively abandoned (no updates since 2012). It wraps node-mongodb-native but introduces a non-standard API surface that does not follow modern best practices. Notably, it does not support promises or async/await and is not compatible with MongoDB 3.x+ drivers. For modern projects, use the official mongodb package or mongoose.
npm install mongodb-wrapperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a database connection and performs a query and insert using the console-like API.
Use the official 'mongodb' package or an ORM like Mongoose.
Migrate to promise-based drivers with async/await.
Consult the documentation for the non-standard API.
Run 'npm install mongodb-wrapper'. Note: requires node-gyp for native dependencies.
Ensure MongoDB is running on the specified host and port.