Module

std/url/extname.ts

The Deno Standard Library
Go to Latest
import * as mod from "https://dotland.deno.dev/std@0.223.0/url/extname.ts";

Functions

Return the extension of the URL with leading period. The extension is sourced from the path portion of the URL. If there is no extension, an empty string is returned.