Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kd_clients/core/Utils.ts>Utils.normalizePath

Various HTTP clients for miscellaneous use.
Go to Latest
method Utils.normalizePath
import { Utils } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/core/Utils.ts";

Normalizes the given path by replacing all back slashes with forward slashes, and trimming any and ending slashes.

Parameters

path: string

The path to normalize.

Returns

string

The normalized path.