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

x/pup/deps.ts>path.dirname

Universal process manager built in Deno
Go to Latest
function path.dirname
import { path } from "https://deno.land/x/pup@1.0.0-rc.9/deps.ts";
const { dirname } = path;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string