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

x/dtils/deps.ts>pathUtils.dirname

The best unofficial library of utilities for Deno applications
Go to Latest
function pathUtils.dirname
import { pathUtils } from "https://deno.land/x/dtils@2.4.0/deps.ts";
const { dirname } = pathUtils;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string