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
Latest
function pathUtils.dirname
import { pathUtils } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { dirname } = pathUtils;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string