server-json/node_modules/tfjs-image-recognition-base/build/commonjs/env/isNodejs.js
2024-11-01 08:00:42 +00:00

12 lines
No EOL
454 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isNodejs() {
return typeof global === 'object'
&& typeof require === 'function'
&& typeof module !== 'undefined'
// issues with gatsby.js: module.exports is undefined
// && !!module.exports
&& typeof process !== 'undefined' && !!process.version;
}
exports.isNodejs = isNodejs;
//# sourceMappingURL=isNodejs.js.map