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

x/ter/deps/std.ts>extname

A tiny wiki-style site generator with Zettelkasten flavor.
Go to Latest
function extname
import { extname } from "https://deno.land/x/ter@0.15.46/deps/std.ts";

Return the extension of the path with leading period.

Parameters

path: string

with extension

Returns

string

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