Skip to content

charliedowler/is-couch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-couch NPM version Build Status Dependency Status

Check if a couchdb is running

See the dbs module for more database types.

Install

$ npm install --save is-couch

Usage

Node.js
var isCouch = require('is-couch');

// Callback
isCouch(function(db) {
  console.log(db.running);
  //=> true
});

// Promise
isCouch().then(function(db) {
  console.log(db.type);
  //=> couchdb
});

CLI

$ npm install -g is-couch
$ is-couch
#=> Up

Release History

  • 2014-10-20 v0.3.0 Fixed command so it actually works
  • 2014-08-28 v0.2.0 Re-published to fix typos (Broken)
  • 2014-08-27 v0.1.0 Initial release (Broken)

License

MIT © Charlie Dowler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published