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

x/netzo/deps/std/path/mod.ts>extname

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function extname
import { extname } from "https://deno.land/x/netzo@0.5.14/deps/std/path/mod.ts";

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

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