Skip to main content
Module

x/wasmbuild/lib/deps.ts>path.extname

Build tool to use Rust code in Deno and the browser.
Very Popular
Latest
function path.extname
import { path } from "https://deno.land/x/wasmbuild@0.15.6/lib/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)