Module

std/path/mod.ts>dirname

The Deno Standard Library
Latest
function dirname
import { dirname } from "https://dotland.deno.dev/std@0.224.0/path/mod.ts";

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string