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

x/fresh/src/dev/deps.ts>dirname

The next-gen web framework.
Extremely Popular
Go to Latest
function dirname
import { dirname } from "https://deno.land/x/fresh@1.6.1/src/dev/deps.ts";

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string