Skip to main content
Module

x/nattramn/deps.ts>extname

Universal web applications with Deno.
Latest
function extname
import { extname } from "https://deno.land/x/nattramn@v0.0.38/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)