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

x/molt/lib/std/path.ts>extname

Update dependencies the Deno way
Latest
function extname
import { extname } from "https://deno.land/x/molt@0.17.2/lib/std/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)