Download lib/shims/node-child-process.ts from ASEM12345/rsshub: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/ASEM12345/rsshub/resolve/main/lib/shims/node-child-process.ts
- Command line
-
hf download hf://spaces/ASEM12345/rsshub/lib/shims/node-child-process.ts
-
curl -L -o node-child-process.ts https://huggingface.co/spaces/ASEM12345/rsshub/resolve/main/lib/shims/node-child-process.ts
445 Bytes
| // Worker-specific shim for node:child_process | |
| // This module is not available in Cloudflare Workers | |
| export function execSync(_command: string): Buffer { | |
| // Return empty buffer - git info will fall back to 'unknown' | |
| return Buffer.from(''); | |
| } | |
| export function exec() { | |
| throw new Error('exec is not supported in Cloudflare Workers'); | |
| } | |
| export function spawn() { | |
| throw new Error('spawn is not supported in Cloudflare Workers'); | |
| } | |