Spaces:
Paused
Paused
Download node_modules/is-node-process/lib/index.mjs from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/is-node-process/lib/index.mjs
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/is-node-process/lib/index.mjs
-
curl -L -o index.mjs https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/is-node-process/lib/index.mjs
436 Bytes
| // src/index.ts | |
| function isNodeProcess() { | |
| if (typeof navigator !== "undefined" && navigator.product === "ReactNative") { | |
| return true; | |
| } | |
| if (typeof process !== "undefined") { | |
| const type = process.type; | |
| if (type === "renderer" || type === "worker") { | |
| return false; | |
| } | |
| return !!(process.versions && process.versions.node); | |
| } | |
| return false; | |
| } | |
| export { | |
| isNodeProcess | |
| }; | |
| //# sourceMappingURL=index.mjs.map |