is-redis

0.1.0 • Public • Published

is-redis NPM version Build Status Dependency Status

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

Dependents (2)

Package Sidebar

Install

npm i is-redis

Weekly Downloads

5

Version

0.1.0

License

MIT

Last publish

Collaborators

  • charliedowler