wait-for-mongodb-slim
v1.0.3
Published
Simply waits for a connection to mongodb
Downloads
212
Readme
Wait for mongo to start
Just pass the full uri of the mongodb connection, set the time or use the default.
Install
npm install -g wait-for-mongodb-slim
Usage
wait-for-mongo --uri mongodb://usr:pwd@localhost:27017/nameOfDB --t 2
--t / --time is the interval time to check the connection. (in seconds) --uri is the uri to try to connecto to.
The application will disconnect from mongodb and exit when done.