connect2mongodb
JSON →Lightweight utility to dynamically connect and disconnect from a MongoDB database using mongoose. Current stable version 1.1.68. Designed for Express/Next.js servers, it simplifies connection management by reading MONGODB_URI or MONGO_URI from environment variables. Key differentiator: allows switching between a fixed database (URI includes db name) and a dynamic database (URI without db name, passed as argument). Requires a specific mongoose version (8.14.2) to avoid runtime errors. Low download volume and minimal maintenance.
Traffic · last 30 days stale · no recent hits
total hits 7
actors 2 distinct systems
last hit 20d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France
Resources
packageconnect2mongodb ↗