face-api.js
Version:
JavaScript API for face detection and face recognition in the browser with tensorflow.js
9 lines • 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