Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/url/basename.ts

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

Functions

Return the last portion of a URL, or the host name if there is no path. Trailing /s are ignored, and optional suffix is removed.