Check if a mysql is running
See the dbs module for more database types.
$ npm install --save is-mysql
var isMysql = require('is-mysql');
// Callback
isMysql(function(db) {
console.log(db.running);
//=> true
});
// Promise
isMysql().then(function(db) {
console.log(db.type);
//=> mysql
});
$ npm install -g is-mysql
$ is-mysql
#=> Up
MIT © Charlie Dowler