function normalizeUrl
normalizeUrl(input: string): string

Returns what a user typed as a link, trimmed, with https:// added when it has no http(s) scheme. The result is not checked to be a valid URL.

Parameters

input: string

Return Type

string

Usage

import { normalizeUrl } from "src/utils/shared/urls.ts";