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