Skip to main content
The Deno 2 Release Candidate is here
Learn more
function posixPath.dirname
import { posixPath } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";
const { dirname } = posixPath;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string