Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.44/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)