Your IP : 216.73.216.52


Current Path : /proc/thread-self/root/home/deltalab/PMS/logistic-backend/node_modules/mquery/lib/
Upload File :
Current File : //proc/thread-self/root/home/deltalab/PMS/logistic-backend/node_modules/mquery/lib/env.js

'use strict';

exports.isNode = 'undefined' != typeof process
           && 'object' == typeof module
           && 'object' == typeof global
           && 'function' == typeof Buffer
           && process.argv;

exports.isMongo = !exports.isNode
           && 'function' == typeof printjson
           && 'function' == typeof ObjectId
           && 'function' == typeof rs
           && 'function' == typeof sh;

exports.isBrowser = !exports.isNode
                 && !exports.isMongo
                 && 'undefined' != typeof window;

exports.type = exports.isNode ? 'node'
  : exports.isMongo ? 'mongo'
    : exports.isBrowser ? 'browser'
      : 'unknown';