portFromHost
●utils · /index·function
Extract a numeric port from a host string, IPv6-safe. Returns null when no port is present or it is not a valid integer.
Signature
function portFromHost(host: string): number;Parameters
| Name | Type | Description |
|---|---|---|
host | string |
Related
ParsedHost AppName BuildEnv DevTld Hostname ShopHandle appFromHost isDevelopment