Module

x/fresh/src/server/deps.ts>extname

The next-gen web framework.
Extremely Popular
Latest
function extname
import { extname } from "https://dotland.deno.dev/x/fresh@1.7.3/src/server/deps.ts";

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

extension (ex. for file.ts returns .ts)