Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/path/dirname.ts>dirname

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

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string