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