Download src/cli/shared/parse-port.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cli/shared/parse-port.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/cli/shared/parse-port.ts
-
curl -L -o parse-port.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cli/shared/parse-port.ts
348 Bytes
| // CLI-facing TCP port parser wrapper. | |
| import { parseTcpPort } from "../../infra/tcp-port.js"; | |
| /** Re-export the canonical TCP port parser and limit for CLI callers. */ | |
| /** Parse a TCP port from unknown CLI/config input, returning null for invalid values. */ | |
| export function parsePort(raw: unknown): number | null { | |
| return parseTcpPort(raw); | |
| } | |