Skip to main content
Module

std/url/mod.ts

Deno standard library
Go to Latest
import * as mod from "https://deno.land/std@0.201.0/url/mod.ts";

Utilities for working with URL paths.

This module is browser compatible.

Functions

Return the last portion of a url. Trailing /s are ignored, and optional suffix is removed.

Return the directory path of a url.

Return the extension of the url with leading period.

Join all given a sequence of a url and paths,then normalizes the resulting url.

Normalize the url, resolving '..' and '.' segments and multiple '/'s into '//' after protocol and remaining into '/'.