1.0.0 • Published 10 months ago

@nyi_nyi_phone_hlaing/mdb-c v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

mdb-c

A simple MongoDB connection utility for Mongoose. This package helps you easily connect to a MongoDB database using Mongoose, with optional logging functionality.

Installation

To install the mdb-c package, run:

npm install mdb-c
const mdbc = require("mdb-c");

const uri = "mongodb://localhost:27017/mydb"; // Replace with your MongoDB URI
const options = { log: "info" }; // Optional: Log level, can be 'info' or 'error'

mdbc(uri, options);
1.0.0

10 months ago