Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>ReleaseClient#normalizePath

Various HTTP clients for miscellaneous use.
Latest
method ReleaseClient.prototype.normalizePath
import { ReleaseClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.ts";

Normalizes the given path by removing any trailing slashes and converting backslashes to forward slashes.

Parameters

path: string

The path to normalize.

Returns

string

The normalized path.