Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/wasmbuild/lib/deps.ts>path.dirname

Build tool to use Rust code in Deno and the browser.
Go to Latest
function path.dirname
import { path } from "https://deno.land/x/wasmbuild@0.15.1/lib/deps.ts";
const { dirname } = path;

Return the directory path of a path.

Parameters

path: string
  • path to extract the directory from.

Returns

string