Nonflavored Prescription Medicine

    is-mongo

    0.4.0 • Public • Published

    is-mongo NPM version Build Status Dependency Status

    Check if a mongodb is running

    See the dbs module for more database types.

    Install

    $ npm install --save is-mongo

    Usage

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

    CLI

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

    License

    MIT © Charlie Dowler

    Install

    npm i is-mongo

    DownloadsWeekly Downloads

    8

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • charliedowler