mongodb-dbpath

JSON →
library 0.0.1 ·javascript
verified Jun 5, 2026

A utility to obtain a writeable filesystem path suitable for MongoDB's --dbpath option, creating the directory if it doesn't exist. Version 0.0.1 is the only release; no maintenance or release cadence indicated. It differentiates by platform: on Travis CI uses process.cwd(), on AppVeyor uses LOCALAPPDATA, and on local laptops defaults to ~/.mongodb/data/<name>. Useful for scripts that need a predictable MongoDB data directory across environments.