Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/path.ts>posix.dirname

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function posix.dirname
import { posix } from "https://deno.land/x/lume@v2.1.1/deps/path.ts";
const { dirname } = posix;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string