Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.5.0/deps.ts";
const { dirname } = pathUtils;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string