Skip to main content
Module

x/mtkruto/0_deps.ts>path.extname

Cross-runtime JavaScript library for building Telegram clients
Latest
function path.extname
import { path } from "https://deno.land/x/mtkruto@0.2.30/0_deps.ts";
const { extname } = path;

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

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