Skip to main content
Module

x/drake/tests/deps.ts>path.extname

Drake is a make-like task runner for Deno.
Latest
function path.extname
import { path } from "https://deno.land/x/drake@v1.7.0/tests/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)