Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.0.2/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)