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

9 lines
No EOL
352 B
JavaScript

export 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;
}
//# sourceMappingURL=isNodejs.js.map