Skip to main content
Module

x/lume/deps/path.ts>extname

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function extname
import { extname } from "https://deno.land/x/lume@v2.1.2/deps/path.ts";

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

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