isNodejs.js 443 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function isNodejs() {
  4. return typeof global === 'object'
  5. && typeof require === 'function'
  6. && typeof module !== 'undefined'
  7. // issues with gatsby.js: module.exports is undefined
  8. // && !!module.exports
  9. && typeof process !== 'undefined' && !!process.version;
  10. }
  11. exports.isNodejs = isNodejs;
  12. //# sourceMappingURL=isNodejs.js.map