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

x/lume/deps/path.ts>posix.extname

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

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

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