Skip to main content
Module

x/vento/deps.ts>path.extname

🌬 A template engine for Deno & Node
Go to Latest
function path.extname
import { path } from "https://deno.land/x/vento@v0.12.5/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)