mongo-healthcheck
A simple function for checking if your mongoose connection to MongoDB is good.
Usage
var mongoHealthcheck = mongoose = ; module { var isError = false; var mongoResult; try mongoResult = ; catch err isError = true; mongoResult = err; resstatusisError ? 500: 200;};
Testing
After cloning the repo run vagrant up
then npm test
.