Skip to main content
Deno 2 is finally 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