Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/tests/deps.ts>extname

The next-gen web framework.
Extremely Popular
Go to Latest
function extname
import { extname } from "https://deno.land/x/fresh@1.6.5/tests/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)