Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/deps.ts>pathUtils.extname

The best unofficial library of utilities for Deno applications
Go to Latest
function pathUtils.extname
import { pathUtils } from "https://deno.land/x/dtils@2.5.0/deps.ts";
const { extname } = pathUtils;

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

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