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.
URL
Please provide a reason for reporting this package. We will review your report and take appropriate action.
Please review the JSR usage policy before submitting a report.
Add Package
deno add jsr:@std/url
Import symbol
import * as mod from "@std/url/extname";
Import directly with a jsr specifier
import * as mod from "jsr:@std/url/extname";