stripPort

utils · /index·function

Remove the port suffix from a host string. IPv6-safe.

my-shop.storefront.localhost:443my-shop.storefront.localhost [::1]:8080::1 127.0.0.1127.0.0.1

Signature

@nordcom/commerce-utils
function stripPort(host: string): string;

Parameters

NameTypeDescription
hoststring

ParsedHost AppName BuildEnv DevTld Hostname ShopHandle appFromHost isDevelopment

Sourcehostname.ts:69Edit the JSDoc directly
Metadata@nordcom/commerce-utils@0.0.0Open in GitHub ↗

On this page