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

x/fastro/http/server/deps.ts>extname

Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
Go to Latest
function extname
import { extname } from "https://deno.land/x/fastro@v0.88.1/http/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)