is-postgres

0.2.0 • Public • Published

is-postgres NPM version Build Status Dependency Status

Check if a postgres is running

See the dbs module for more database types.

Install

$ npm install --save is-postgres

Usage

Node.js
var isPostgres = require('is-postgres');
 
// Callback
isPostgres(function(db) {
  console.log(db.running);
  //=> true
});
 
// Promise
isPostgres().then(function(db) {
  console.log(db.type);
  //=> postgres
});

CLI

$ npm install --global is-postgres
$ is-postgres
#=> Up 

Release History

  • 2014-10-20 v0.2.0 Cross platform support
  • 2014-08-31 v0.1.0 Initial release

License

MIT © Charlie Dowler

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.06latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.06
0.1.00

Package Sidebar

Install

npm i is-postgres

Weekly Downloads

6

Version

0.2.0

License

MIT

Last publish

Collaborators

  • charliedowler