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

x/fresh/src/dev/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.1/src/dev/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)