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

x/proc/src/deps/path.ts>extname

A better way to work with processes in Deno.
Latest
function extname
import { extname } from "https://deno.land/x/proc@0.21.9/src/deps/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)