stripProtocol

Function

Remove protocol if present

  • stripProtocol(hostname: string) : string

Parameters

Parameter Type Default Notes
hostname Required string

Hostname

Returns

string

Function defined in packages/common/src/urls/strip-protocol.ts:5